-
Notifications
You must be signed in to change notification settings - Fork 18
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
Token in localStorage cleared on page refresh of Angular application #44
Comments
Hello @bertfonteyn , Here is where the token deletion happens. |
Hi @claudiopetrini , Thanks for reaching out to me so quickly. I'm on a Mac, which sets the date/time automatically through time.apple.com. It should be very precise. If I understand it correctly, when you perform a login action through the Stamplay JavaScript SDK, a token is returned, which is then stored in localStorage, and used in every subsequent request (as long as it's still valid)? So even though I refresh the Angular application, it should still keep the token? |
Hello @bertfonteyn ,yes you're correct. |
Hi @bertfonteyn , have you found the solution yet. Because I am also struggling with this problem. |
When the user logs in using standard email/password authentication, I can see a new key showing up in localStorage, containing the token.
When the page is refreshed, the key in localStorage is gone, which means the user has to log in again.
The text was updated successfully, but these errors were encountered: