Checkpoint: Implémentation authentification hybride (cookies + Authorization header) - Résolution du problème de connexion dans l'environnement de preview Manus
This commit is contained in:
@@ -36,6 +36,8 @@ export function useAuth(options?: UseAuthOptions) {
|
||||
}
|
||||
throw error;
|
||||
} finally {
|
||||
// Supprimer le token de localStorage
|
||||
localStorage.removeItem('auth_token');
|
||||
utils.auth.me.setData(undefined, null);
|
||||
await utils.auth.me.invalidate();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user