#28 fix: add component imports in pages and isAuthenticated method

This commit is contained in:
mono
2026-03-07 16:03:17 -05:00
parent 0ba348cc64
commit 72d81bdf47
2 changed files with 73 additions and 0 deletions

View File

@@ -61,6 +61,10 @@ class AuthService {
return data.access;
}
static isAuthenticated() {
return !!this.getAccessToken();
}
static logout() {
localStorage.removeItem(this.TOKEN_KEY);
localStorage.removeItem(this.REFRESH_KEY);