Issues with Auth0 NextJS Session Expiration

Hi @tyler.heathcote,

I have been doing some digging into this and have found a few things that may be helpful!

Referencing this Community article, there are session environmental variables you can set with Next.js. If you’d like to control the session expiry, set the AUTH0_SESSION_ROLLING_DURATION and AUTH0_SESSION_ABSOLUTE_DURATION environment variables: ConfigParameters | @auth0/nextjs-auth0

They should be specified in seconds. The rolling session expiry is how long the session is set to. When the user keeps active on the app, this session is extended until the absolute duration is exceeded.

This issue would also be worth bringing up in tomorrow’s Next.js AMA!

Best,

Mary Beth