maofalt / Transcendence

4 stars 0 forks source link

verify login state for frontend #111

Closed YoelRidgway closed 7 months ago

YoelRidgway commented 7 months ago

We need a way to verify the login status in the frontend given that javascript cant access the jwt token due to httponly. There are two options that i can think of:

  1. create an endpoint that returns the auth status
  2. add a readable token in the cookies that gets set to true when logging in and false when logging out