dawidl022 / ECS506-flat-finder-app

FDM Flat Finder application for ECS506U - Software Engineering group project at Queen Mary University of London
1 stars 1 forks source link

Redirect to login page if user not logged in #114

Closed dawidl022 closed 1 year ago

dawidl022 commented 1 year ago

Our application should not be accessible when the user is not logged in. As such, if the user is not logged in, they should always be redirected to the login page.

You can check whether the user is logged in by the presence of a JWT token in a "token" cookie.

The backend will refuse to produce a 200 response on any other endpoint than the login endpoint unless the user is logged in (i.e. a valid JWT token is sent along with the request).