feat(auth): enhance logout and login flow with return URL handling
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user