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
Be able to force refresh the access token from the client via calling client.getAccessToken
Non-Goals
Background
The Auth0Client.getAccessToken has the refresh option already: auth0/nextjs-auth0#2055.
The client version - can be called in client context - of the getAccessToken doesn't support the refresh parameter yet, nor does the SDK route for access-token has a refresh parameter.
With this silent refreshing can be done from the client context, for example when the application decides that the permissions should be refreshed.
Proposal
The client side getAccessToken should have similar API to the Auth0Client.getAccessToken - having an optional refresh parameter. Also the access-token SDK route should handle the optional refresh parameter.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
client.getAccessTokenNon-Goals
Background
The Auth0Client.getAccessToken has the refresh option already: auth0/nextjs-auth0#2055.
The client version - can be called in client context - of the getAccessToken doesn't support the refresh parameter yet, nor does the SDK route for access-token has a refresh parameter.
With this silent refreshing can be done from the client context, for example when the application decides that the permissions should be refreshed.
Proposal
The client side
getAccessTokenshould have similar API to the Auth0Client.getAccessToken - having an optional refresh parameter. Also the access-token SDK route should handle the optional refresh parameter.I'm interested in implementing this.
Beta Was this translation helpful? Give feedback.
All reactions