@neondatabase/neon-js 0.1.0-beta.16 → 0.1.0-beta.18
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.
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@neondatabase/auth/next/server";
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neondatabase/neon-js",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.17",
|
|
4
4
|
"description": "TypeScript SDK for Neon Auth and Data API - authentication and PostgreSQL querying",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -83,6 +83,10 @@
|
|
|
83
83
|
"types": "./dist/auth/next/index.d.mts",
|
|
84
84
|
"default": "./dist/auth/next/index.mjs"
|
|
85
85
|
},
|
|
86
|
+
"./auth/next/server": {
|
|
87
|
+
"types": "./dist/auth/next/server/index.d.mts",
|
|
88
|
+
"default": "./dist/auth/next/server/index.mjs"
|
|
89
|
+
},
|
|
86
90
|
"./ui/css": {
|
|
87
91
|
"types": "./dist/ui/css.d.ts",
|
|
88
92
|
"default": "./dist/ui/css.css"
|
|
@@ -116,7 +120,7 @@
|
|
|
116
120
|
},
|
|
117
121
|
"dependencies": {
|
|
118
122
|
"@neondatabase/postgrest-js": "^0.1.0-alpha.1",
|
|
119
|
-
"@neondatabase/auth": "^0.1.0-beta.
|
|
123
|
+
"@neondatabase/auth": "^0.1.0-beta.18",
|
|
120
124
|
"@supabase/postgres-meta": "0.93.1",
|
|
121
125
|
"meow": "14.0.0",
|
|
122
126
|
"zod": "4.1.12"
|
package/llms-full.txt
CHANGED
|
@@ -662,7 +662,7 @@ Mount the auth handler to an API route:
|
|
|
662
662
|
|
|
663
663
|
```typescript
|
|
664
664
|
// app/api/auth/[...path]/route.ts
|
|
665
|
-
import { authApiHandler } from "@neondatabase/auth/next"
|
|
665
|
+
import { authApiHandler } from "@neondatabase/auth/next/server"
|
|
666
666
|
|
|
667
667
|
export const { GET, POST } = authApiHandler()
|
|
668
668
|
```
|
|
@@ -673,7 +673,7 @@ Protect routes and handle session validation:
|
|
|
673
673
|
|
|
674
674
|
```typescript
|
|
675
675
|
// middleware.ts
|
|
676
|
-
import { neonAuthMiddleware } from "@neondatabase/auth/next"
|
|
676
|
+
import { neonAuthMiddleware } from "@neondatabase/auth/next/server"
|
|
677
677
|
|
|
678
678
|
export default neonAuthMiddleware({
|
|
679
679
|
loginUrl: "/auth/sign-in",
|
|
@@ -876,7 +876,7 @@ export default async function OrganizationPage({
|
|
|
876
876
|
#### React Server Components
|
|
877
877
|
|
|
878
878
|
```typescript
|
|
879
|
-
import { neonAuth } from "@neondatabase/auth/next"
|
|
879
|
+
import { neonAuth } from "@neondatabase/auth/next/server"
|
|
880
880
|
|
|
881
881
|
export async function SessionCard() {
|
|
882
882
|
const { session, user } = await neonAuth()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neondatabase/neon-js",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.18",
|
|
4
4
|
"description": "TypeScript SDK for Neon Auth and Data API - authentication and PostgreSQL querying",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -83,6 +83,10 @@
|
|
|
83
83
|
"types": "./dist/auth/next/index.d.mts",
|
|
84
84
|
"default": "./dist/auth/next/index.mjs"
|
|
85
85
|
},
|
|
86
|
+
"./auth/next/server": {
|
|
87
|
+
"types": "./dist/auth/next/server/index.d.mts",
|
|
88
|
+
"default": "./dist/auth/next/server/index.mjs"
|
|
89
|
+
},
|
|
86
90
|
"./ui/css": {
|
|
87
91
|
"types": "./dist/ui/css.d.ts",
|
|
88
92
|
"default": "./dist/ui/css.css"
|
|
@@ -116,7 +120,7 @@
|
|
|
116
120
|
},
|
|
117
121
|
"dependencies": {
|
|
118
122
|
"@neondatabase/postgrest-js": "0.1.0-alpha.1",
|
|
119
|
-
"@neondatabase/auth": "0.1.0-beta.
|
|
123
|
+
"@neondatabase/auth": "0.1.0-beta.18",
|
|
120
124
|
"@supabase/postgres-meta": "0.93.1",
|
|
121
125
|
"meow": "14.0.0",
|
|
122
126
|
"zod": "4.1.12"
|