Files
cozsweet-frontend-nextjs/docs/nextauth/docs/configuration/databases.md
T
admin d70e61f92e refactor(auth): switch to class-based social login and v4 route handler
Migrate from function-based social login helpers (`facebookLogin`, `googleLogin`)
to class-based services (`new FacebookLogin().signIn()`, `new GoogleLogin().signIn()`),
updating call sites in `AuthFacebookPanel` and `SplashButton` with try/catch error
handling. The NextAuth route handler is also refactored to the v4 pattern, importing
pre-built `GET` / `POST` exports from `@/lib/auth/nextauth` instead of constructing
the handler inline with `NextAuth(authOptions)`.
2026-06-10 15:34:52 +08:00

831 B

id, title
id title
databases Databases

NextAuth.js offers multiple database adapters. Check out the overview.

As of v4 NextAuth.js no longer ships with an adapter included by default. If you would like to persist any information, you need to install one of the many available adapters yourself. See the individual adapter documentation pages for more details.

To learn more about databases in NextAuth.js and how they are used, check out databases in the FAQ.


How to use a database

See the documentation for adapters for more information on advanced configuration, including how to use NextAuth.js with other databases using a custom adapter.