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;
}
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