<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y00006CIxhOSATOkta Classic EngineSingle Sign-OnAnswered2019-09-17T16:06:45.000Z2019-04-29T08:33:09.000Z2019-05-06T23:23:23.000Z

VitalyB.73043 (Customer) asked a question.

How is "@okta/okta-react" is able to log me in with an expired access token?

Hi,

 

I am using @okta/okta-react to login, in the following manner:

 

export const Home = withAuth(({auth}: {auth: any}) => {

  const authCheck = await auth.isAuthenticated();

}

 

Without a valid authentication, I get false, as expected. Once I login and get a valid accessToken and idToken and run the function, I get true, as expected again.

 

However, even when the access token expires (e.g 3 hours), Okta is still somehow able to log me in and isAuthenticated returns true. I am using implicit grant type, so I don't have a refresh token. How is okta able to log me in? What information is then used to allow me to log in and what is the expiry of this extend token mechanism?


This question is closed.
Loading
How is "@okta/okta-react" is able to log me in with an expired access token?