Skip to content

Commit

Permalink
fix token invalidation detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Onatcer committed Aug 20, 2024
1 parent b741105 commit 00e095e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/utils/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' });

0 comments on commit 00e095e

Please sign in to comment.