Skip to content

Commit

Permalink
Merge pull request #1751 from damienbod/bugfix/id_token_expire_check
Browse files Browse the repository at this point in the history
Bugfix id token expire check
  • Loading branch information
FabianGosebrink committed May 5, 2023
2 parents 213a818 + bf1cc7f commit f2ff476
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,10 @@
## Angular Lib for OpenID Connect/OAuth2 Changelog

### 2023-05-05 15.0.5

- Bugfix id token expire check
- [PR](https://github.com/damienbod/angular-auth-oidc-client/pull/1751)

### 2023-04-15 15.0.4

- isCurrentlyInPopup will check for opener and session storage
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -8,7 +8,7 @@
"bugs": {
"url": "https://github.com/damienbod/angular-auth-oidc-client/issues"
},
"version": "15.0.4",
"version": "15.0.5",
"scripts": {
"ng": "ng",
"build": "npm run build-lib",
Expand Down
2 changes: 1 addition & 1 deletion projects/angular-auth-oidc-client/package.json
Expand Up @@ -36,7 +36,7 @@
"authorization"
],
"license": "MIT",
"version": "15.0.4",
"version": "15.0.5",
"description": "Angular Lib for OpenID Connect & OAuth2",
"schematics": "./schematics/collection.json",
"ng-add": {
Expand Down
Expand Up @@ -169,6 +169,9 @@ export class PeriodicallyTokenCheckService {
return false;
}

return this.authStateService.hasAccessTokenExpiredIfExpiryExists(config);
const idTokenExpired = this.authStateService.hasIdTokenExpiredAndRenewCheckIsEnabled(config);
const accessTokenExpired = this.authStateService.hasAccessTokenExpiredIfExpiryExists(config);

return idTokenExpired || accessTokenExpired;
}
}
2 changes: 1 addition & 1 deletion projects/schematics/package.json
@@ -1,6 +1,6 @@
{
"name": "schematics",
"version": "15.0.4",
"version": "15.0.5",
"description": "A schematic for the Angular Lib for OpenID Connect & OAuth2",
"scripts": {
"build": "tsc -p tsconfig.json",
Expand Down
2 changes: 1 addition & 1 deletion projects/schematics/src/ng-add/actions/add-dependencies.ts
Expand Up @@ -5,7 +5,7 @@ import { NgAddOptions } from '../models/ng-add-options';
const dependenciesToAdd: any[] = [
{
name: 'angular-auth-oidc-client',
version: '15.0.4',
version: '15.0.5',
},
];

Expand Down

0 comments on commit f2ff476

Please sign in to comment.