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

Read from localstorage when initializing #524

Closed
svict4 opened this issue Mar 9, 2021 · 1 comment
Closed

Read from localstorage when initializing #524

svict4 opened this issue Mar 9, 2021 · 1 comment

Comments

@svict4
Copy link

svict4 commented Mar 9, 2021

Hey how have people implemented localStorage so that the auth state is maintained through refreshes?
There several SO Q&As about this. Seems like the solution is to put it within AuthContext rather than a HOC that wraps around your package? Would you agree and would you like a PR for it?

@svict4
Copy link
Author

svict4 commented Mar 10, 2021

Actually, I think my concerns might be already addressed in #332 (comment)

@svict4 svict4 closed this as completed Mar 10, 2021
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

No branches or pull requests

1 participant