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

Fixes: Access Token in Persistent Storage is removed on hard refresh. #46

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

rg-najera
Copy link

As noted in my approach here - #45 this PR makes sure that the auth token keys are not removed from localStorage when they aren't received (i.e. when (i.e. before first use and before they expire)

  • [ x ] Build
  • [ ] Passes Jest

…cess token when none is returned - i.e. before its been used (devise)
@rg-najera
Copy link
Author

Hey maintainers, just noting that jest fails currently. We dont seem to have TS interface testing. Main point of contention in auth.test.ts is setAuthHeaders(Storage, headers) would need to interface with "Storage" to provide a pass for auth service › setAuthHeaders › sets the appropriate auth headers on the global axios config - Seems like some mock-data for Storage could allow this to pass.

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.

1 participant