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

Question: Persistent login #4

Open
fullerlee opened this issue Sep 23, 2018 · 1 comment
Open

Question: Persistent login #4

fullerlee opened this issue Sep 23, 2018 · 1 comment

Comments

@fullerlee
Copy link

fullerlee commented Sep 23, 2018

Hi,
I wondered if there was a pattern for persisting login credentials on the client so that the user doesn't have to re-enter credentials.
I'm persisting the JWT Token, and then refreshing upon login, but that will obviously only work for validFor seconds, after which time the request request will be rejected.
Thanks

@ramazansakin
Copy link

Hi @fullerlee,

You can store the jwt tokens in anywhere you want and then when someone try to login you can just check whether the token is expired or not, if not, you can pass the login page, if expired you can redirect the user to login and after succesfull login you can update the token. is this what you want or I misunderstood ?

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

2 participants