import {JwtHelperService} from '@auth0/angular-jwt';
export class AuthService {
private jwtHelper: JwtHelperService;
constructor(){
this.jwtHelper = new JwtHelperService();
}
getAccessToken(): string {
return localStorage.getItem('access');
}
getAccessTokenExpirationDate(): Date {
return this.jwtHelper.getTokenExpirationDate(this.getAccessToken());
}
}