feat: refresh page when auth tokens are cleared
This commit is contained in:
parent
9e5d48931d
commit
9aec279d05
1 changed files with 1 additions and 0 deletions
|
@ -7,6 +7,7 @@ export const useAuth = () => {
|
||||||
async function clearAuth() {
|
async function clearAuth() {
|
||||||
accessToken.value = null;
|
accessToken.value = null;
|
||||||
user.value = null;
|
user.value = null;
|
||||||
|
await navigateTo("/login");
|
||||||
}
|
}
|
||||||
|
|
||||||
async function register(username: string, email: string, password: string) {
|
async function register(username: string, email: string, password: string) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue