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.
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.