feat: refresh page when auth tokens are cleared

This commit is contained in:
SauceyRed 2025-07-09 07:25:39 +02:00
parent 9e5d48931d
commit 9aec279d05
Signed by: sauceyred
GPG key ID: 2BF92EB6D8A5CCA7

View file

@ -7,6 +7,7 @@ export const useAuth = () => {
async function clearAuth() {
accessToken.value = null;
user.value = null;
await navigateTo("/login");
}
async function register(username: string, email: string, password: string) {