The-AJE-Alliance / ft_transcendence

Surprise
1 stars 0 forks source link

auth flow between front and back #28

Closed mortebrume closed 1 month ago

mortebrume commented 1 month ago

class for auth in js for managing state, mainly the access token and the connexion bool. renew access token when the token expires, get the refresh token from httponly cookie. need to check if access token has expired. csrf need to be managed when there's a login.

mortebrume commented 1 month ago

responses codes coming from the API :