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 implementation #18768

Merged
merged 11 commits into from
Jan 29, 2024
Merged

Add remember me implementation #18768

merged 11 commits into from
Jan 29, 2024

Conversation

Sinan997
Copy link
Contributor

Resolves #18421

  • if the access_token expires while user is using the application, the token will be regenerated via using refresh_token under the hood. This is already the normal behaviour.

The implementation details

  • save remember_me is checked or not to local_storage.
  • If the users close the browser tab. And when he opened the application again firstly we will check the access_token is it expired or not.
    • If the access_token didn't expire, the user can keep using the application with valid token.
    • If the access_token expired, now we will check remember_me option.
      • If remember_me didn't checked, then we will redirect to login.
      • If remember_me checked, we will regenerate access_token via refresh_token. And user will be able to use application

@ismcagdas ismcagdas merged commit c5ae142 into dev Jan 29, 2024
2 of 3 checks passed
@ismcagdas ismcagdas deleted the sinan/remember_me branch January 29, 2024 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Remember Me choice doesn't work properly
4 participants