You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be helpful to let us force an access token refresh rather than waiting for them to expire. The scenario I've run into is updating a user's claims after they've updated their profile.
Describe the ideal solution
Adding a refresh option to the getAccessToken method, like so: tokenCache.getAccessToken({ refresh: true })
Alternatives and current work-arounds
This is my workaround, but it doesn't seem to always work.
consttokenCache=auth0.tokenCache(req,res)constsession=awaitauth0.getSession(req)session.accessTokenExpiresAt=1awaittokenCache.store.save(req,res,session)// now it will refreshconst{ accessToken }=awaittokenCache.getAccessToken()
The text was updated successfully, but these errors were encountered:
Describe the problem you'd like to have solved
It would be helpful to let us force an access token refresh rather than waiting for them to expire. The scenario I've run into is updating a user's claims after they've updated their profile.
Describe the ideal solution
Adding a
refresh
option to thegetAccessToken
method, like so:tokenCache.getAccessToken({ refresh: true })
Alternatives and current work-arounds
This is my workaround, but it doesn't seem to always work.
The text was updated successfully, but these errors were encountered: