Session Timeout
Unanswered
Galgo Español posted this in #help-forum
Galgo EspañolOP
I am building a project using Next js 14, so I have an
I am also using
I made a minimal project with a single page to single out the error.
This is my code: https://github.com/charan-vendra/next-auth-entra
The code runs fine, and the timer also runs fine, but after the timeout duration, I get the error:
How can I resolve this?
app/ directory and don't have a pages/ directory. I am also using
next-auth v5 beta for authentication and also this package called use-idle-timeout from npm.I made a minimal project with a single page to single out the error.
This is my code: https://github.com/charan-vendra/next-auth-entra
The code runs fine, and the timer also runs fine, but after the timeout duration, I get the error:
Error: 'headers' was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-contextHow can I resolve this?