mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-09-27 19:16:53 -05:00
feat: implement logout on frontend
This commit is contained in:
@@ -65,9 +65,14 @@ export function useAuthStore() {
|
||||
}
|
||||
}
|
||||
|
||||
function logout() {
|
||||
set(null);
|
||||
}
|
||||
|
||||
return {
|
||||
getToken,
|
||||
refresh,
|
||||
set
|
||||
set,
|
||||
logout,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user