manage refresh token + better error management