After an hour need a refresh to do REST Requests


When a user is logged in for over an hour he needs to refresh the page to get a refreshed token, but when the user doesn’t refresh and does a REST request it returns in error because the token is not valid anymore. The session has been set to 12hours on the okta admin dashboard. What can I do to work around this problem?

Kind regards

if you are talking about access_token expiration, then you need to request a new one, when you current one is about to expire. Okta Auth SDK has a method to subscribe to the expiration event, where you can perform a refresh

Thanks for the information, will try that out soon!