Skip to content

Commit

Permalink
Update namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangilbert committed Nov 16, 2024
1 parent dfca31f commit e26b124
Show file tree
Hide file tree
Showing 8 changed files with 3,166 additions and 314 deletions.
3,432 changes: 3,135 additions & 297 deletions package-lock.json

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"typescript-eslint": "^8.4.0"
},
"dependencies": {
"solid-auth": "^0.0.1",
"solid-js": "^1.8.22",
"vinxi": "^0.4.3",
"vite-plugin-css-injected-by-js": "^3.5.2",
Expand Down
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

0 comments on commit e26b124

Please sign in to comment.