Skip to content

Commit f30098d

Browse files
committed
fix: clock skew bug
1 parent 6d3c9c3 commit f30098d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/injectables/OAuthService.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -11221,7 +11221,7 @@ <h3 id="inputs">
1122111221
const now &#x3D; this.dateTimeService.now();
1122211222
const issuedAtMSec &#x3D; claims.iat * 1000;
1122311223
const expiresAtMSec &#x3D; claims.exp * 1000;
11224-
const clockSkewInMSec &#x3D; (this.getClockSkewInMsec() || 600) * 1000;
11224+
const clockSkewInMSec &#x3D; this.getClockSkewInMsec(); // (this.getClockSkewInMsec() || 600) * 1000;
1122511225

1122611226
if (
1122711227
issuedAtMSec - clockSkewInMSec &gt;&#x3D; now ||

projects/lib/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"author": {
55
"name": "Manfred Steyer"
66
},
7-
"version": "12.0.1",
7+
"version": "12.0.2",
88
"repository": "manfredsteyer/angular-oauth2-oidc",
99
"peerDependencies": {
1010
"@angular/common": ">=12.0.0",

projects/lib/src/oauth-service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -2227,7 +2227,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
22272227
const now = this.dateTimeService.now();
22282228
const issuedAtMSec = claims.iat * 1000;
22292229
const expiresAtMSec = claims.exp * 1000;
2230-
const clockSkewInMSec = (this.getClockSkewInMsec() || 600) * 1000;
2230+
const clockSkewInMSec = this.getClockSkewInMsec(); // (this.getClockSkewInMsec() || 600) * 1000;
22312231

22322232
if (
22332233
issuedAtMSec - clockSkewInMSec >= now ||

0 commit comments

Comments
 (0)