Add debug logs to checkAuthStatus for missing or expired JWT
This commit is contained in:
@@ -73,11 +73,13 @@ export class AuthService {
|
||||
public checkAuthStatus(): boolean {
|
||||
const jwt = this.getJwt();
|
||||
if (!jwt) {
|
||||
console.log("No JWT found");
|
||||
return false;
|
||||
}
|
||||
try {
|
||||
if (this.jwtHelper.isTokenExpired(jwt)) {
|
||||
this.logout();
|
||||
console.log("Token expired, logging out");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user