@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.
Files changed (38) hide show
  1. package/README.md +8 -8
  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 -4
  10. package/dist/{neon-auth-C9XTFffv.mjs → neon-auth-DdlToh7_.mjs} +1 -1
  11. package/dist/next/index.d.mts +18 -187
  12. package/dist/next/index.mjs +2 -4
  13. package/dist/react/adapters/index.d.mts +3 -3
  14. package/dist/react/adapters/index.mjs +1 -3
  15. package/dist/react/index.d.mts +4 -4
  16. package/dist/react/index.mjs +4 -94
  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/css.css +1 -1
  25. package/dist/ui/tailwind.css +0 -3
  26. package/dist/ui/theme.css +125 -49
  27. package/dist/ui-aMoA-9nq.mjs +9449 -0
  28. package/dist/vanilla/adapters/index.d.mts +3 -3
  29. package/dist/vanilla/adapters/index.mjs +1 -3
  30. package/dist/vanilla/index.d.mts +3 -3
  31. package/dist/vanilla/index.mjs +1 -3
  32. package/package.json +7 -3
  33. package/dist/ui-BQAaHqx4.mjs +0 -386
  34. /package/dist/{adapters-CivF9wql.mjs → adapters-D0mxG3F-.mjs} +0 -0
  35. /package/dist/{adapters-Dkx0zoMR.mjs → adapters-Df6Dd3KK.mjs} +0 -0
  36. /package/dist/{index-DuDD6cIY.d.mts → index-BXlAjlSt.d.mts} +0 -0
  37. /package/dist/{index-C-svZlpj.d.mts → index-ClXLQ1fw.d.mts} +0 -0
  38. /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
- - Settting 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`
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
- - Access session and users details with `neonAuth()` in server components
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
- 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:
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