The-AJE-Alliance / ft_transcendence

0 stars 0 forks source link

auth flow between front and back #28

Open mortebrume opened 2 hours ago

mortebrume commented 2 hours 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.