Fixed some styling and token validation issues
This commit is contained in:
1 parent
3dbc562147
commit
a4c0898be8
3 files changed
+34
-19
No files matched your search
@@ -75,11 +75,13 @@ export class AdminComponent implements OnInit, OnDestroy {
|
||||
(isValid: boolean) => {
|
||||
if (!isValid) {
|
||||
console.warn('Token is no longer valid. Logging out.');
|
||||
localStorage.removeItem('token');
|
||||
this.navigateToLogin();
|
||||
}
|
||||
},
|
||||
(error) => {
|
||||
console.error('Error validating token:', error);
|
||||
localStorage.removeItem('token');
|
||||
this.navigateToLogin();
|
||||
}
|
||||
);
|
||||
|
||||
Reference in new issue
Block a user