github nextauthjs/next-auth v4.0.0-beta.7

latest releases: @auth/azure-tables-adapter@1.7.3, @auth/d1-adapter@1.7.3, @auth/dgraph-adapter@2.7.3...
pre-release2 years ago

4.0.0-beta.7 (2021-11-15)

Bug Fixes

Features

BREAKING CHANGES

  • It is now required to set a secret in production.
  • The session.jwt: boolean option has been renamed to session.strategy: "jwt" | "database". The goal is to make the user's options more intuitive:
  1. No adapter, strategy: "jwt": This is the default. The session is saved in a cookie and never persisted anywhere.
  2. With Adapter, strategy: "database": If an Adapter is defined, this will be the implicit setting. No user config is needed.
  3. With Adapter, strategy: "jwt": The user can explicitly instruct next-auth to use JWT even if a database is available. This can result in faster lookups in compromise of lowered security. Read more about: https://next-auth.js.org/faq#json-web-tokens

Example:

session: {
-  jwt: true,
+ strategy: "jwt",
}

Don't miss a new next-auth release

NewReleases is sending notifications on new releases.