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

Move SESSION_STORAGE_KEY out of SessionService #84

Merged
merged 1 commit into from
Mar 14, 2023
Merged

Conversation

jeffdaley
Copy link
Contributor

@jeffdaley jeffdaley commented Mar 10, 2023

Moves the SESSION_STORAGE_KEY variable out of the SessionService, where it was sometimes undefined.

CleanShot 2023-03-09 at 19 50 09@2x

My maybe-crazy theory:
Because SessionService extends EmberSimpleAuthSessionService, there are cases where this.session refers only to the base class. In the authenticated route, this.session.requireAuthentication works because it's part of the base class, while SESSION_STOAGE_KEY may come up undefined because it's not.

Either way, I haven't seen the undefineds since making this change.

@jeffdaley jeffdaley marked this pull request as ready for review March 10, 2023 01:26
@jeffdaley jeffdaley requested a review from a team as a code owner March 10, 2023 01:26
@jeffdaley jeffdaley merged commit 9c5f24a into main Mar 14, 2023
@jeffdaley jeffdaley deleted the jeffdaley/redirect branch March 14, 2023 17:31
anuragprafulla pushed a commit to razorpay/hermes that referenced this pull request Jun 27, 2023
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