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