File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2268,7 +2268,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
2268
2268
2269
2269
if (
2270
2270
issuedAtMSec - clockSkewInMSec >= now ||
2271
- expiresAtMSec + clockSkewInMSec - this . decreaseExpirationBySec <= now
2271
+ expiresAtMSec + clockSkewInMSec - this . decreaseExpirationBySec * 1000 <= now
2272
2272
) {
2273
2273
const err = 'Token has expired' ;
2274
2274
console . error ( err ) ;
@@ -2424,8 +2424,7 @@ export class OAuthService extends AuthConfig implements OnDestroy {
2424
2424
const now = this . dateTimeService . new ( ) ;
2425
2425
if (
2426
2426
expiresAt &&
2427
- parseInt ( expiresAt , 10 ) - this . decreaseExpirationBySec <
2428
- now . getTime ( ) - this . getClockSkewInMsec ( )
2427
+ parseInt ( expiresAt , 10 ) - this . decreaseExpirationBySec * 1000 < now . getTime ( )
2429
2428
) {
2430
2429
return false ;
2431
2430
}
You can’t perform that action at this time.
0 commit comments