feat(auth): enhance logout and login flow with return URL handling

This commit is contained in:
2025-04-25 14:41:58 -04:00
parent 2c09be4465
commit e394c346ae
5 changed files with 53 additions and 11 deletions

View File

@@ -55,7 +55,7 @@ export function useClient() {
return client(originalRequest);
} catch (refreshError) {
console.error('Token refresh failed, logging out user:', refreshError);
await authStore.logout();
await authStore.logout('/login');
throw refreshError;
}
}