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

Add remember_me login flow #4

Open
pfferrari opened this issue May 9, 2023 · 1 comment
Open

Add remember_me login flow #4

pfferrari opened this issue May 9, 2023 · 1 comment
Assignees
Labels

Comments

@pfferrari
Copy link
Contributor

pfferrari commented May 9, 2023

Add the Remember me checkbox below login form fields.
If you click the Remember me checkbox before submitting the form obtained customer data will be stored in localStorage.
This way the customer token will be available for future login attempts and, if valid, will be used to login back the customer without showing the login form (loading status).
Stored customer token will take advantage of refreshToken in order to be respawned if refreshToken is still valid otherwise the login form will show and corresponding customerToken localStorage will be removed.

@pfferrari pfferrari self-assigned this May 9, 2023
@pfferrari pfferrari changed the title Add remember_me flow Add remember_me login flow May 10, 2023
@pfferrari
Copy link
Contributor Author

@marcomontalbano @malessani does this idea for remember me flow look good for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant