logout button
This commit is contained in:
6
frontend/lib/api/auth/logout.ts
Normal file
6
frontend/lib/api/auth/logout.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
export async function logout() {
|
||||
useAuthSession().value = null;
|
||||
await navigateTo({
|
||||
path: '/signin',
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user