mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix: load turnstile script in layout and explicitly render
chore: npm run format + lint
This commit is contained in:
@@ -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 = '/';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user