@neondatabase/auth 0.1.0-beta.5 → 0.1.0-beta.7
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 +8 -8
- package/dist/{adapter-core-C12KoaiU.d.mts → adapter-core-Bw9mn_AS.d.mts} +95 -508
- package/dist/{adapter-core-BDOw-gBC.mjs → adapter-core-C_NEMs0b.mjs} +2 -4
- package/dist/{better-auth-react-adapter-FnBHa2nr.mjs → better-auth-react-adapter-BbM3jLLv.mjs} +1 -1
- package/dist/{better-auth-react-adapter-BXL48HIU.d.mts → better-auth-react-adapter-JoscqoDc.d.mts} +88 -88
- package/dist/better-auth-types-CE4hLv9E.d.mts +9 -0
- package/dist/chunk-5DLVHPZS-Bxj7snpZ-DoVNlsyk.mjs +533 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +1 -4
- package/dist/{neon-auth-C9XTFffv.mjs → neon-auth-DdlToh7_.mjs} +1 -1
- package/dist/next/index.d.mts +18 -187
- package/dist/next/index.mjs +2 -4
- package/dist/react/adapters/index.d.mts +3 -3
- package/dist/react/adapters/index.mjs +1 -3
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.mjs +4 -94
- package/dist/react/ui/index.d.mts +1 -1
- package/dist/react/ui/index.mjs +3 -91
- package/dist/react/ui/server.mjs +1 -1
- package/dist/{supabase-adapter-ggmqWgPe.mjs → supabase-adapter-CAqbpOC7.mjs} +45 -123
- package/dist/{supabase-adapter-crabDnl2.d.mts → supabase-adapter-Clxlqg1x.d.mts} +1 -2
- package/dist/types/index.d.mts +8 -0
- package/dist/types/index.mjs +3 -0
- package/dist/ui/css.css +1 -1
- package/dist/ui/tailwind.css +0 -3
- package/dist/ui/theme.css +125 -49
- package/dist/ui-aMoA-9nq.mjs +9449 -0
- package/dist/vanilla/adapters/index.d.mts +3 -3
- package/dist/vanilla/adapters/index.mjs +1 -3
- package/dist/vanilla/index.d.mts +3 -3
- package/dist/vanilla/index.mjs +1 -3
- package/package.json +7 -3
- package/dist/ui-BQAaHqx4.mjs +0 -386
- /package/dist/{adapters-CivF9wql.mjs → adapters-D0mxG3F-.mjs} +0 -0
- /package/dist/{adapters-Dkx0zoMR.mjs → adapters-Df6Dd3KK.mjs} +0 -0
- /package/dist/{index-DuDD6cIY.d.mts → index-BXlAjlSt.d.mts} +0 -0
- /package/dist/{index-C-svZlpj.d.mts → index-ClXLQ1fw.d.mts} +0 -0
- /package/dist/{index-UW23fDSn.d.mts → index-DCQ5Y2ED.d.mts} +0 -0
package/README.md
CHANGED
|
@@ -215,16 +215,18 @@ Multiple concurrent `getSession()` calls are automatically deduplicated:
|
|
|
215
215
|
|
|
216
216
|
For Next.js projects, this package provides built-in integration via `@neondatabase/auth/next`. See the [Next.js Setup Guide](./NEXT-JS.md) for:
|
|
217
217
|
|
|
218
|
-
-
|
|
219
|
-
- Protecting routes with `neonAuthMiddleware()`
|
|
220
|
-
-
|
|
221
|
-
- Configuring the `NeonAuthUIProvider`
|
|
218
|
+
- Setting up the auth handler with `authApiHandler()`
|
|
219
|
+
- Protecting routes with `neonAuthMiddleware()`
|
|
220
|
+
- Creating the auth client with `createAuthClient()` for client components
|
|
221
|
+
- Configuring the `NeonAuthUIProvider` with Email OTP, Social Login, and Organizations
|
|
222
|
+
- Creating auth pages (`AuthView`, `AccountView`, `OrganizationView`)
|
|
222
223
|
- Importing styles (with or without Tailwind CSS)
|
|
223
|
-
-
|
|
224
|
+
- Accessing session data with `neonAuth()` in server components
|
|
225
|
+
- Using `authClient.useSession()` hook in client components
|
|
224
226
|
|
|
225
227
|
## CSS for UI Components
|
|
226
228
|
|
|
227
|
-
|
|
229
|
+
Styles for Neon Auth UI components are available from this package:
|
|
228
230
|
|
|
229
231
|
| Export | Use Case |
|
|
230
232
|
|--------|----------|
|
|
@@ -244,13 +246,11 @@ If you're using `@neondatabase/auth-ui` components, CSS is conveniently re-expor
|
|
|
244
246
|
|
|
245
247
|
- [`@neondatabase/neon-js`](../neon-js) - Full SDK with database and auth integration
|
|
246
248
|
- [`@neondatabase/postgrest-js`](../postgrest-js) - PostgreSQL client without auth
|
|
247
|
-
- [`@neondatabase/auth-ui`](../auth-ui) - UI components for Neon Auth
|
|
248
249
|
|
|
249
250
|
## Resources
|
|
250
251
|
|
|
251
252
|
- [Neon Auth Documentation](https://neon.tech/docs/neon-auth)
|
|
252
253
|
- [Better Auth Documentation](https://www.better-auth.com/docs)
|
|
253
|
-
- [Supabase Auth Reference](https://supabase.com/docs/reference/javascript/auth-signup)
|
|
254
254
|
|
|
255
255
|
## Support
|
|
256
256
|
|