<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
System Status
Announcements
Announcements
Search
Search
Select Language
0D54z00007ViGo7CAFOkta Classic EngineAuthenticationAnswered2022-03-19T08:48:44.000Z2022-03-16T18:36:34.000Z2022-03-19T08:48:44.000Z

VelizarZ.34810 (Customer) asked a question.

Okta for Angular extends session lifetime with each new token obtained?!

Hi!

 

I'm using Okta in my Angular app. Access token's lifetime is 5 mins and session's one is 7 mins. I'm expecting the following behavior:

User is logged in

Access token's lifetime is set to 5 mins

Session's lifetime is set to 7 mins

After 5 mins (when the access token expires) I'm getting new tokens (ID and access) with getWithoutPrompt or renewTokens

After 5 more minutes I'm trying to do the same thing ^ and it's successful, although the session should be expired already

 

I can see, that with every tokens refresh request the session's lifetime gets extended with 7 more mins.

 

I don't want this thing to happen, I want the session not to get extended whenever I get new access and ID tokens.

 

Is there a way to achieve that?

 

Thanks!

 

"@okta/okta-angular": "^5.1.1",

"@okta/okta-auth-js": "^6.2.0",

"@okta/okta-signin-widget": "^6.1.2",


This question is closed.
Loading
Okta for Angular extends session lifetime with each new token obtained?!
Okta Support Agent (Beta)

Terms of Service

Hello! I'm the Okta Support Agent (Beta), your go-to resource for questions about Okta products. Please remember for your security and privacy, do not share any Personally Identifiable Information (PII) such as passwords, IP addresses, or other details with me.

Okta Privacy Policy and Terms of Service apply