fix: load turnstile script in layout and explicitly render

chore: npm run format + lint
This commit is contained in:
2026-01-04 09:22:27 -05:00
parent 24b25c2291
commit 2c24af5ac9
11 changed files with 109 additions and 91 deletions
@@ -2,10 +2,10 @@
import { user } from '$lib/stores/user';
import { resolve } from '$app/paths';
import { page } from '$app/state';
import { clearTokens } from '$lib/utils/auth';
function logout() {
localStorage.removeItem('token');
localStorage.removeItem('refreshToken');
clearTokens();
user.set(null);
window.location.href = '/';
}