Closed IncognitoTGT closed 2 weeks ago
For me this was resolved when updating to: next-auth@5.0.0-beta.25
see https://github.com/nextauthjs/next-auth/issues/12136#issuecomment-2444728065
please upgrade
For me this was resolved when updating to: next-auth@5.0.0-beta.25
Thanks, it worked
Environment
Reproduction URL
https://github.com/spaceness/stardust
Describe the issue
Next.js 15 introduced breaking changes to some dynamic APIs, such as headers(). That API must now be accessed asynchronously. Auth.js still accesses them synchronously, which throws multiple warnings when you go to run your app. For example, when you try to access the log in page in the aforementioned application, this is logged:
How to reproduce
Setup Auth.js in a Next.js 15 application and use a function such as
auth()
Expected behavior
These headers should be accessed with
await
to reflect the changes, and no errors should be logged in the console.