chore: remove legacy workspace and restructure API + modular admin UI
This commit is contained in:
@@ -12,6 +12,11 @@ export function clearToken() {
|
||||
localStorage.removeItem(TOKEN_KEY);
|
||||
}
|
||||
|
||||
export function logout() {
|
||||
clearToken();
|
||||
window.location.href = "/login";
|
||||
}
|
||||
|
||||
export function isLoggedIn() {
|
||||
return Boolean(getToken());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user