mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-08 08:12:17 +01:00
fix token invalidation detection
This commit is contained in:
@@ -145,7 +145,7 @@ export async function fetchToken() {
|
||||
});
|
||||
}
|
||||
export function isTokenValid() {
|
||||
return window.document.cookie.includes('solidtime_session');
|
||||
return window.document.cookie.includes('XSRF-TOKEN');
|
||||
}
|
||||
|
||||
export const api = createApiClient('/api', { validate: 'none' });
|
||||
|
||||
Reference in New Issue
Block a user