Add debug logs to checkAuthStatus for missing or expired JWT
This commit is contained in:
parent
f67cb50f41
commit
c536bfbf30
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user