-
Notifications
You must be signed in to change notification settings - Fork 792
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
3137 UI refresh token logic #3188
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## develop #3188 +/- ##
==========================================
Coverage ? 72.75%
==========================================
Files ? 469
Lines ? 13424
Branches ? 0
==========================================
Hits ? 9767
Misses ? 3657
Partials ? 0 Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
1df8bd8
to
7630f4f
Compare
7630f4f
to
06d6eb7
Compare
06d6eb7
to
12a0fa2
Compare
12a0fa2
to
32012ef
Compare
32012ef
to
1e39f45
Compare
1e39f45
to
68a875a
Compare
315c23c
to
a2ce7d3
Compare
68a875a
to
2ec7554
Compare
2ec7554
to
66a25d0
Compare
66a25d0
to
5619e8c
Compare
5619e8c
to
43d9db5
Compare
43d9db5
to
5074344
Compare
5074344
to
1c66d99
Compare
b2905ea
to
d834c46
Compare
_removeTokens(tokenNameArray) { | ||
tokenNameArray?.forEach(tokenName => { | ||
localStorage.removeItem(tokenName); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any reason we don't want to always remove the auth and refresh tokens together?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, there is. When we do a request and it is 401, we can immediately remove the authentication token but not the refresh token as we need it so we can generate a new token pair.
d834c46
to
df4fd60
Compare
We went a different direction. |
What does this PR do?
Fixes #3137 .
Add any further explanations here.
PR Checklist
Testing Checklist