#28 fix: add component imports in pages and isAuthenticated method
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user