I’m working on an Angular SPA which will use Okta for user authorization. We configure a default expiration time on the Okta admin site. When a user logs in, the “expire at” value reflects that default expiration time. In the angular application, I subscribe to the $authenticationState, and that observable pops when the user’s session has expired.
Is there a way to programmatically bump up, refresh, or reset that expiration time before it expires? I’m not asking how to determine when it will expire. I’m asking if there is an API call I could make that would go back to Okta and return a new token with a refreshed/reset expiration time?
Otherwise, it seems like this would be a bad user experience to abruptly end a user’s session if they are in the middle of an important task. Yes, our FE app could be written to just ignore the session expiring, and the Server would also have to ignore the “expires at” value, but that also seems like a bad idea.