Login Feature: Invalid JWToken crashes backend
Created by: lecegues
Description
After a server restart, any existing sessions (cookie token) is not handled gracefully-- will shut down the whole backend if it is read by the system.
What could be the problem?
- I believe it could be due to cookie session management? I think that the generated tokens are forgotten upon restart of the server. I do not know fully why the server crashes though, as invalid tokens seem to be handled properly in the code.
Steps to Reproduce (Local & Dockerized)
- Start Frontend and Backend
- Login with correct credentials and stay logged in (do not log out)
- Restart the frontend & backend services
- Once frontend/backend starts back up, using the same browser go to the website
- The backend service should crash upon noticing the cookie token