Session refreshing with NextJS and session cookies?

Please include the following information in your post:

Hi. As per this architecture page: nextjs-auth0/ARCHITECTURE.md at main · auth0/nextjs-auth0 · GitHub, the access token and the ID token are returned as httpOnly cookies to the browser.

  • Is the lifetime of this access token the same as the one if I were using the auth0-react SDK?
  • If the access token expires during an API call from the frontend, how is it refreshed?
  • If the access token expires during a SSR call (browser navigation call), how is it refreshed?

Thanks