#BTCNextATH NextAuth.js is a tool that allows connecting various parts of the authentication flow. It uses JSON web tokens to store the user's session.

Features of NextAuth.js

Allows sending properties to the client, such as an access token from a provider

When calling getSession or useSession, the data object returned will include the value of accessToken

The JWT is stored in the session token cookie

If a database adapter is used, the database will be used to retain the user's session