Fixed some styling and token validation issues

This commit is contained in:
itzMiney committed 2025-03-15 22:15:59 +01:00
1 parent 3dbc562147
commit a4c0898be8
3 files changed
+34 -19

No files matched your search

+2
View File
@@ -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();
}
);