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
Add default behavior to perform a check to see if tokens are expired/expiring and perform a refresh if so. Currently getTokens() doesn't check for this.
We can write a method to do this but it would be idea if this was default behavior:
async function getAccessToken() {
if (!(await oktaAuth.isAuthenticated()) {
return null;
}
return oktaAuth.tokenManager.getTokens().accessToken;
}
New or Affected Resource(s)
getTokens();
Provide a documentation link
No response
Additional Information?
No response
The text was updated successfully, but these errors were encountered:
Describe the feature request?
Add default behavior to perform a check to see if tokens are expired/expiring and perform a refresh if so. Currently getTokens() doesn't check for this.
We can write a method to do this but it would be idea if this was default behavior:
New or Affected Resource(s)
getTokens();
Provide a documentation link
No response
Additional Information?
No response
The text was updated successfully, but these errors were encountered: