Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refreshToken expiration causing 400 error on secure routes instead of redirecting #784

Closed
MaximumCrash opened this issue Jun 2, 2021 · 2 comments

Comments

@MaximumCrash
Copy link

Hi I was guided here by Andrea Skouras on the Support Engineering side.

Expected Behavior

  • When using scopes with offline_access and a defined refreshToken on our React app (using the okta-react 5.1.1) I expect the app to redirect the user to the okta sign in widget on secure routes when the user's token expires.

What's Happening

  • When the refreshToken expires and the user lands on a secure route we get a 400 response error from the token endpoint. (Specifically that our tokens aren't valid.)

Upon further investigation we discovered that the tokenManager isn't being cleared when a refresh is necessary.

@oleksandrpravosudko-okta
Copy link
Contributor

Thanks for the report @MaximumCrash.

Internal ref: OKTA-400565

@shuowu
Copy link
Contributor

shuowu commented Jul 15, 2021

Fixed in v5.2.1

@shuowu shuowu closed this as completed Jul 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants