Masum ULU
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
0 deletions
-
npm/ng-packs/packages/oauth/src/lib/utils/auth-utils.ts
|
|
@ -25,6 +25,7 @@ export const pipeToLogin: PipeToLoginFn = function ( |
|
|
); |
|
|
); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
//Ref: https://github.com/manfredsteyer/angular-oauth2-oidc/issues/1214
|
|
|
export function isTokenExpired(expireDate: number): boolean { |
|
|
export function isTokenExpired(expireDate: number): boolean { |
|
|
const currentDate = new Date().getTime(); |
|
|
const currentDate = new Date().getTime(); |
|
|
return expireDate < currentDate; |
|
|
return expireDate < currentDate; |
|
|
|