Please include the following information in your post:
- @auth0/nextjs-auth0
- 1.9.0
- NextJS 10.2.3
Hello, when I try to use refresh token in @auth0/nextjs-auth0 I see weird behaviors.
I already added offline_access to AUTH0_SCOPE (AUTH0_SCOPE=openid email profile offline_access) in environment file
When I check my session I see a refresh token inside the session but when my access token expires I don’t get a new access token automatically. For getting a new access token do I need to manually call something?
If for getting a new access token I need to call getAccessToken method. It also works a little bit weirdly. When I call getAccessToken manually if the access token is not expired it returns the current access token but when the access token expired its returns a new access token after that I get a new access token for each request. I think this happens because it’s not an update session.