@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.
Files changed (39) hide show
  1. package/README.md +8 -6
  2. package/dist/{adapter-core-C12KoaiU.d.mts → adapter-core-Bw9mn_AS.d.mts} +95 -508
  3. package/dist/{adapter-core-BDOw-gBC.mjs → adapter-core-C_NEMs0b.mjs} +2 -4
  4. package/dist/{better-auth-react-adapter-FnBHa2nr.mjs → better-auth-react-adapter-BbM3jLLv.mjs} +1 -1
  5. package/dist/{better-auth-react-adapter-BXL48HIU.d.mts → better-auth-react-adapter-JoscqoDc.d.mts} +88 -88
  6. package/dist/better-auth-types-CE4hLv9E.d.mts +9 -0
  7. package/dist/chunk-5DLVHPZS-Bxj7snpZ-DoVNlsyk.mjs +533 -0
  8. package/dist/index.d.mts +3 -3
  9. package/dist/index.mjs +1 -1
  10. package/dist/{neon-auth-C9XTFffv.mjs → neon-auth-DdlToh7_.mjs} +1 -1
  11. package/dist/next/index.d.mts +80 -198
  12. package/dist/next/index.mjs +199 -60
  13. package/dist/react/adapters/index.d.mts +3 -3
  14. package/dist/react/adapters/index.mjs +1 -1
  15. package/dist/react/index.d.mts +4 -4
  16. package/dist/react/index.mjs +4 -92
  17. package/dist/react/ui/index.d.mts +1 -1
  18. package/dist/react/ui/index.mjs +3 -91
  19. package/dist/react/ui/server.mjs +1 -1
  20. package/dist/{supabase-adapter-ggmqWgPe.mjs → supabase-adapter-CAqbpOC7.mjs} +45 -123
  21. package/dist/{supabase-adapter-crabDnl2.d.mts → supabase-adapter-Clxlqg1x.d.mts} +1 -2
  22. package/dist/types/index.d.mts +8 -0
  23. package/dist/types/index.mjs +3 -0
  24. package/dist/ui/.safelist.html +3 -0
  25. package/dist/ui/css.css +1 -1
  26. package/dist/ui/tailwind.css +2 -2
  27. package/dist/ui/theme.css +125 -49
  28. package/dist/ui-aMoA-9nq.mjs +9449 -0
  29. package/dist/vanilla/adapters/index.d.mts +3 -3
  30. package/dist/vanilla/adapters/index.mjs +1 -1
  31. package/dist/vanilla/index.d.mts +3 -3
  32. package/dist/vanilla/index.mjs +1 -1
  33. package/package.json +7 -3
  34. package/dist/ui-CNFBSekF.mjs +0 -401
  35. /package/dist/{adapters-CivF9wql.mjs → adapters-D0mxG3F-.mjs} +0 -0
  36. /package/dist/{adapters-Dkx0zoMR.mjs → adapters-Df6Dd3KK.mjs} +0 -0
  37. /package/dist/{index-DuDD6cIY.d.mts → index-BXlAjlSt.d.mts} +0 -0
  38. /package/dist/{index-C-svZlpj.d.mts → index-ClXLQ1fw.d.mts} +0 -0
  39. /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
- - Creating API route handlers with `toNextJsHandler()`
219
- - Setting up the auth client for client components
220
- - 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`)
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
- If you're using `@neondatabase/auth-ui` components, CSS is conveniently re-exported from this package:
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