Browse Source

Add issue ref to auth-utils

pull/18768/head
Masum ULU 3 years ago
committed by GitHub
parent
commit
0b63b88b8a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      npm/ng-packs/packages/oauth/src/lib/utils/auth-utils.ts

1
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 {
const currentDate = new Date().getTime();
return expireDate < currentDate;

Loading…
Cancel
Save