@revealui/auth 0.4.7 → 0.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -3
- package/package.json +6 -10
package/README.md
CHANGED
|
@@ -32,7 +32,7 @@ pnpm add @revealui/auth
|
|
|
32
32
|
### Server-Side
|
|
33
33
|
|
|
34
34
|
```typescript
|
|
35
|
-
import { getSession, signIn,
|
|
35
|
+
import { getSession, signIn, deleteSession, createSession } from '@revealui/auth/server'
|
|
36
36
|
|
|
37
37
|
// Validate session from request headers
|
|
38
38
|
const session = await getSession(request.headers)
|
|
@@ -41,7 +41,7 @@ const session = await getSession(request.headers)
|
|
|
41
41
|
const result = await signIn({ email, password })
|
|
42
42
|
|
|
43
43
|
// Sign out (invalidate session)
|
|
44
|
-
await
|
|
44
|
+
await deleteSession(request.headers)
|
|
45
45
|
```
|
|
46
46
|
|
|
47
47
|
### Client-Side (React)
|
|
@@ -72,7 +72,6 @@ function AuthComponent() {
|
|
|
72
72
|
| Subpath | Contents |
|
|
73
73
|
|---------|----------|
|
|
74
74
|
| `@revealui/auth/server` | Server-side auth (session CRUD, sign in/out, rate limiting, brute force) |
|
|
75
|
-
| `@revealui/auth/client` | Client-side utilities |
|
|
76
75
|
| `@revealui/auth/react` | React hooks (`useSession`, `useSignIn`, `useSignOut`) |
|
|
77
76
|
|
|
78
77
|
## Security
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@revealui/auth",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "Database-backed session auth for Hono and Next.js — bcrypt, OAuth, brute-force protection, rate limiting, password reset. Ships with RevealUI.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"auth",
|
|
@@ -14,11 +14,11 @@
|
|
|
14
14
|
"bcryptjs": "^3.0.3",
|
|
15
15
|
"drizzle-orm": "^0.45.2",
|
|
16
16
|
"zod": "^4.4.3",
|
|
17
|
-
"@revealui/config": "0.
|
|
18
|
-
"@revealui/contracts": "0.
|
|
19
|
-
"@revealui/core": "0.
|
|
20
|
-
"@revealui/db": "0.
|
|
21
|
-
"@revealui/security": "0.
|
|
17
|
+
"@revealui/config": "0.6.0",
|
|
18
|
+
"@revealui/contracts": "0.8.0",
|
|
19
|
+
"@revealui/core": "0.12.0",
|
|
20
|
+
"@revealui/db": "0.9.0",
|
|
21
|
+
"@revealui/security": "0.5.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
24
|
"@simplewebauthn/browser": "^13.3.0",
|
|
@@ -44,10 +44,6 @@
|
|
|
44
44
|
"types": "./dist/server/index.d.ts",
|
|
45
45
|
"import": "./dist/server/index.js"
|
|
46
46
|
},
|
|
47
|
-
"./client": {
|
|
48
|
-
"types": "./dist/client/index.d.ts",
|
|
49
|
-
"import": "./dist/client/index.js"
|
|
50
|
-
},
|
|
51
47
|
"./react": {
|
|
52
48
|
"types": "./dist/react/index.d.ts",
|
|
53
49
|
"import": "./dist/react/index.js"
|