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

chore: put token into local-storage #34

Merged
merged 1 commit into from
Oct 29, 2020
Merged

Conversation

klee214
Copy link
Contributor

@klee214 klee214 commented Oct 29, 2020

issue #30
I made a small change for your project to accept the token local-storage variable -- 'localstorage.getItem("token")'. So that the token is valid as long as the browser is open.

If there is any bug or this is not you wanted, please let me know about that.
Also, I highly recommend redux is a nice choice for storing token or other state used across the components.

@netlify
Copy link

netlify bot commented Oct 29, 2020

‼️ Deploy request for hardcore-morse-df1d25 rejected.
Learn more about Netlify's sensitive variable policy

🔨 Explore the source changes: fe9e930

@redxzeta
Copy link
Owner

I'll keep it in mind for redux.

I feel like the app is small at the moment or maybe I'll use useContext

@redxzeta redxzeta merged commit a758a8a into redxzeta:main Oct 29, 2020
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.

2 participants