So I have a working react app using oauth (using okta) and I have an issue.
When I change my claims in the authorization server the app does not see this until the token expires or I logoff and login again.
But when refresh the page(F5) I the getUser()
function returns the correct claims but the token is not updated.
Is there a way to tell the okta client to fetch a new token ?
I am using okta-auth-js.
Thanks
So I found
getWithoutPrompt()
https://github.com/okta/okta-auth-js/blob/master/README.md#tokengetwithoutpromptoptionsWhich enables me to fetch a new token when I detect the change with the
getUser()
function