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

Store Access Token on State Management #69

Open
minhhy2801 opened this issue Jun 2, 2024 · 0 comments
Open

Store Access Token on State Management #69

minhhy2801 opened this issue Jun 2, 2024 · 0 comments
Assignees

Comments

@minhhy2801
Copy link
Contributor

minhhy2801 commented Jun 2, 2024

After login or registering success, redirect to /home page (temp: showing menu nike store)
Not allow user to go back to routes: login, register,... until integrating API /logout or clear token in local storage

Access token expired time 5mins after access token timeout need to update in local storage by refresh token /token API to get new one
If token expired -> redirect to login page

Note

make sure Sigin In in store home page will see your name after logined

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

When branches are created from issues, their pull requests are automatically linked.

3 participants