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
fix(mobile): Stop sending app to login page for unrelated auth errors #7383
Conversation
@@ -16,28 +17,31 @@ class AuthGuard extends AutoRouteGuard { | |||
resolver.next(true); |
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.
This is the only section I'm not terribly sure about. I think we should block the resolver if Store.get(StoreKey.accessToken)
excepts with a StoreKeyNotFoundException
because we do that synchronously. But I didn't want to change the logic here, so I left this intact.
…nly send you to the login page when the response from the server is a 401 linter
c04a10e
to
485baa4
Compare
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.
LGTM 🎉
Might fix #4850? |
Yes, I believe so. |
Store