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

Combine Session and LocalStorage for redirect handling #103

Merged
merged 13 commits into from
Mar 31, 2023

Conversation

jeffdaley
Copy link
Contributor

@jeffdaley jeffdaley commented Mar 23, 2023

A follow up to #94 (and response to @jfreda's comment),
this adds localStorage as a fallback redirect solution rather the primary one.

Still need to figure out why SessionStorage doesn't work on the first try...

@jeffdaley jeffdaley force-pushed the jeffdaley/move-local-storage-to-fallback branch 2 times, most recently from c65b91c to 5c26e64 Compare March 23, 2023 23:23
@jeffdaley jeffdaley force-pushed the jeffdaley/move-local-storage-to-fallback branch from 5c26e64 to c544ec8 Compare March 23, 2023 23:26
@jeffdaley jeffdaley changed the title Jeffdaley/move local storage to fallback Combine Session and LocalStorage for redirect handling Mar 23, 2023
@jeffdaley jeffdaley marked this pull request as ready for review March 23, 2023 23:33
@jeffdaley jeffdaley requested a review from a team as a code owner March 23, 2023 23:33
web/app/services/session.ts Outdated Show resolved Hide resolved
@jeffdaley jeffdaley force-pushed the jeffdaley/move-local-storage-to-fallback branch from d1531ca to e606129 Compare March 30, 2023 22:57
@jeffdaley jeffdaley merged commit b42949e into main Mar 31, 2023
@jeffdaley jeffdaley deleted the jeffdaley/move-local-storage-to-fallback branch March 31, 2023 13:17
anuragprafulla pushed a commit to razorpay/hermes that referenced this pull request Jun 27, 2023
…ge#103)

* Switch from SessionStorage to LocalStorage

* Use expiring localStorage

* Add test

* Make localStorage a fallback

* Remove MockDate; Switch to afterEach

* Increase expiration time

* Fix expiration logic; Cleanup

* Update session-test.ts

* Tweak isObject; Add documentation

* Update test
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