Summary
When logging in using 2FA with āKeep me logged inā the session still expires. Iām not sure if this is limited to 2FA as I donāt have a non-2FA account to test with.
Steps to reproduce
- Go to
/login
- Enter credentials for an account with 2FA enabled
- Check the āKeep me logged inā and ānot a robotā boxes
- Press the āLog inā button
- Enter 2FA code
- Go do other stuff and come back at least an hour later
- Refresh the page or perform some other action
Current Behavior
The app is redirected to login page
Expected behavior
The session is still valid (login not required).
Possible solutions
The ākeep me logged inā flag may not be passed along when creating the new JWT after verifying the 2FA code.