šŸ“„ next-auth/guides/fullstack

File: fullstack.md | Updated: 11/15/2025

Source: https://next-auth.js.org/guides/fullstack

Skip to main content

šŸŽ‰ NextAuth.js is now part of Better Auth !

Version: v4

On this page

Refresh Token Rotation

​

  • How to implement refresh token rotation.

LDAP Authentication

​

  • How to use the Credentials Provider to authenticate against an LDAP database. This approach can be used to authenticate existing user accounts against any backend.

Adding HTTP(S) Proxy Support

​

  • Add support for HTTP/HTTPS Proxy support to openid-client in order to use NextAuth.js behind a corporate proxy or other locked down network.

Using the Email Provider behind Corporate Email Scanning Services

​

  • An internal tutorial on modifying the catch-all API Route to gracefully handle HEAD requests.

Database​


Custom models with TypeORM

​

  • How to use models with custom properties using the TypeORM adapter.

Creating a database adapter

​

  • How to create a custom adapter, to use any database to fetch and store user / account data.

Adding role based login to database session strategy

​