
DanielleM.61055 (Customer) asked a question.
Okta OIDC-SPA Application: Force session expiration after 30 minutes of inactivity or 2 hours max
Hi! I'm trying to figure out how to force my Okta OIDC/SPA Application to expire sessions automatically after 30 minutes of inactivity, or 2 hours maximum. I set up a custom Authentication Policy that this application sets these parameters, and I've also set these parameters in my Global Session Policy. Still, the app seems to not expire tokens; it seems to be automatically renewing them? I can't quite figure it out and would appreciate any guidance y'all have to offer.

SPA session expiration is dependent on how the app was implemented. It could be one of the following
1) okta session time - this is modified in global session policy
2) id_token expiration time - this is adjusted in the custom authorization server. if you dont have a custom authZ server for this app then youll need to create one
3) access_token expiration time - this is NOT customizable. its hard-coded to 2 hours