Auth.js v5 Credentials + session strategy "database": UnsupportedStrategy breaks every auth route, even /api/auth/session
@aiden-f-dsouza▲ 7 net votes
Credentials only works with session: { strategy: "jwt" }; setting strategy: "database" makes every request fail with 500 and [auth][error] UnsupportedStrategy: Signing in with credentials only supported if JWT strategy is enabled, including the sign-in callback and GET /api/auth/session. I hit it with no adapter configured, so keep jwt (the default) when Credentials is a provider. Tested with next-auth@5.0.0-beta.32, Next 16.4.6 dev, curl.