Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update namespace #25

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
314 changes: 119 additions & 195 deletions package-lock.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions packages/server/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# @solidauth/server
# @solidstart-auth/server

A secure, flexible authentication library designed for SolidStart applications, providing essential authentication features with TypeScript support.

## Overview

`@solidauth/server` provides a robust authentication system that includes:
`@solidstart-auth/server` provides a robust authentication system that includes:

- Session management compatible with SolidStart/Vinxi
- User authentication (login/register flows)
Expand All @@ -16,15 +16,15 @@ A secure, flexible authentication library designed for SolidStart applications,
## Installation

```bash
npm install @solidauth/server
npm install @solidstart-auth/server
```

## Quick Start

Here's a basic example of setting up authentication in a SolidStart application:

```typescript
import { createAuthCallbacks } from '@solidauth/server';
import { createAuthCallbacks } from '@solidstart-auth/server';
import { useSession } from 'vinxi/http';

// Basic setup with default configuration
Expand Down Expand Up @@ -139,7 +139,7 @@ if (passwordError) {
}

// Email validation
import { isValidEmail } from '@solidauth/server';
import { isValidEmail } from '@solidstart-auth/server';
if (!isValidEmail(email)) {
// Handle invalid email
}
Expand Down Expand Up @@ -225,7 +225,7 @@ const auth = createAuthCallbacks(useSession, {
### 1. Protected Routes

```typescript
import { createAuthCallbacks } from '@solidauth/server';
import { createAuthCallbacks } from '@solidstart-auth/server';
import { useSession } from 'vinxi/http';
import { redirect } from '@solidjs/router';

Expand All @@ -244,7 +244,7 @@ export async function protectedLoader() {

```typescript
import { createContext, useContext } from 'solid-js';
import type { User } from '@solidauth/server';
import type { User } from '@solidstart-auth/server';

const UserContext = createContext<User>();

Expand Down
4 changes: 2 additions & 2 deletions packages/server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@solidauth/server",
"name": "@solidstart-auth/server",
"version": "1.0.0",
"description": "authentication tools for SolidStart",
"main": "./dist/index.js",
Expand Down
8 changes: 4 additions & 4 deletions packages/ui/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# @solidauth/ui
# @solidstart-auth/ui

A modern, customizable authentication UI component library for SolidStart applications. Provides ready-to-use login and signup forms with both light and dark themes.

Expand All @@ -14,17 +14,17 @@ A modern, customizable authentication UI component library for SolidStart applic
## Installation

```bash
npm install @solidauth/ui @solidjs/router
npm install @solidstart-auth/ui @solidjs/router
```

## Usage

Import and use the components in your SolidStart application:

```tsx
import { LoginFormLight, SignUpFormLight } from '@solidauth/ui';
import { LoginFormLight, SignUpFormLight } from '@solidstart-auth/ui';
// or
import { LoginFormDark, SignUpFormDark } from '@solidauth/ui';
import { LoginFormDark, SignUpFormDark } from '@solidstart-auth/ui';

// In your component:
export default function AuthPage() {
Expand Down
17 changes: 15 additions & 2 deletions packages/ui/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@solidauth/ui",
"name": "@solidstart-auth/ui",
"version": "1.0.0",
"description": "UI components for SolidStartJS",
"main": "./dist/index.js",
Expand Down