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

Simplify session/localStorage logic; Add isLoggedIn check #126

Merged
merged 4 commits into from
Apr 6, 2023

Conversation

jeffdaley
Copy link
Contributor

@jeffdaley jeffdaley commented Apr 6, 2023

Simplifies the logic for saving session/localStorage redirect values.

Adds an isLoggedIn check to prevent a 401 that was bubbling up to the application error and triggering an unnecesary invalidate call. You can see in the screenshot that it's the previously unconditional loadUserInfo call that's triggering the error and causing the session to invalidate:

CleanShot 2023-04-06 at 17 09 18@2x

@jeffdaley jeffdaley marked this pull request as ready for review April 6, 2023 21:21
@jeffdaley jeffdaley requested a review from a team as a code owner April 6, 2023 21:21
@jeffdaley jeffdaley merged commit 12f1f30 into main Apr 6, 2023
@jeffdaley jeffdaley deleted the jeffdaley/fix-redirect branch April 6, 2023 22:40
anuragprafulla pushed a commit to razorpay/hermes that referenced this pull request Jun 27, 2023
…forge#126)

* Simplify session/localStorage logic; add isLoggedIn check

* Revert application.js change

* Add comment

* Reduce diff
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

Successfully merging this pull request may close these issues.

None yet

2 participants