next-auth icon indicating copy to clipboard operation
next-auth copied to clipboard

add missing step for credntials provider

Open elbasel-404 opened this issue 8 months ago • 2 comments

  • [x ] Documentation
  • [ ] Tests
  • [ ] Ready to be merged

Credntials provider needs the strategy inside the session parameter to be set to `jwt', however this is not mentioned in the docs.

elbasel-404 avatar May 10 '25 12:05 elbasel-404

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
auth-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 10, 2025 0:23am
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
next-auth-docs ⬜️ Ignored (Inspect) Visit Preview May 10, 2025 0:23am

vercel[bot] avatar May 10 '25 12:05 vercel[bot]

@elbasel42 is attempting to deploy a commit to the authjs Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] avatar May 10 '25 12:05 vercel[bot]

There's no need to manually set the session strategy when using the Credentials provider—auth.js sets it by default. You can find more details in the official documentation: Session Strategies

halvaradop avatar Aug 24 '25 23:08 halvaradop

@halvaradop my testing summarized that it doesn't work without setting the strategy, can you please double check?

elbasel-404 avatar Sep 05 '25 12:09 elbasel-404