@neondatabase/auth 0.1.0-beta.1 → 0.1.0-beta.11
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 -6
- 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 -1
- package/dist/{neon-auth-C9XTFffv.mjs → neon-auth-DdlToh7_.mjs} +1 -1
- package/dist/next/index.d.mts +80 -198
- package/dist/next/index.mjs +199 -60
- package/dist/react/adapters/index.d.mts +3 -3
- package/dist/react/adapters/index.mjs +1 -1
- package/dist/react/index.d.mts +4 -4
- package/dist/react/index.mjs +4 -92
- 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/.safelist.html +3 -0
- package/dist/ui/css.css +1 -1
- package/dist/ui/tailwind.css +2 -2
- 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 -1
- package/dist/vanilla/index.d.mts +3 -3
- package/dist/vanilla/index.mjs +1 -1
- package/package.json +7 -3
- package/dist/ui-CNFBSekF.mjs +0 -401
- /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,14 +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
|
-
-
|
|
220
|
-
-
|
|
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`)
|
|
221
223
|
- Importing styles (with or without Tailwind CSS)
|
|
224
|
+
- Accessing session data with `neonAuth()` in server components
|
|
225
|
+
- Using `authClient.useSession()` hook in client components
|
|
222
226
|
|
|
223
227
|
## CSS for UI Components
|
|
224
228
|
|
|
225
|
-
|
|
229
|
+
Styles for Neon Auth UI components are available from this package:
|
|
226
230
|
|
|
227
231
|
| Export | Use Case |
|
|
228
232
|
|--------|----------|
|
|
@@ -242,13 +246,11 @@ If you're using `@neondatabase/auth-ui` components, CSS is conveniently re-expor
|
|
|
242
246
|
|
|
243
247
|
- [`@neondatabase/neon-js`](../neon-js) - Full SDK with database and auth integration
|
|
244
248
|
- [`@neondatabase/postgrest-js`](../postgrest-js) - PostgreSQL client without auth
|
|
245
|
-
- [`@neondatabase/auth-ui`](../auth-ui) - UI components for Neon Auth
|
|
246
249
|
|
|
247
250
|
## Resources
|
|
248
251
|
|
|
249
252
|
- [Neon Auth Documentation](https://neon.tech/docs/neon-auth)
|
|
250
253
|
- [Better Auth Documentation](https://www.better-auth.com/docs)
|
|
251
|
-
- [Supabase Auth Reference](https://supabase.com/docs/reference/javascript/auth-signup)
|
|
252
254
|
|
|
253
255
|
## Support
|
|
254
256
|
|