Skip to content

Commit ebeca23

Browse files
committed
merge
2 parents e38c99c + 48e53b9 commit ebeca23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: projects/lib/src/oauth-service.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,9 @@ export class OAuthService extends AuthConfig implements OnDestroy {
495495
const now = this.dateTimeService.now();
496496
const delta =
497497
(expiration - storedAt) * this.timeoutFactor - (now - storedAt);
498-
return Math.max(0, delta);
498+
const duration = Math.max(0, delta);
499+
const maxTimeoutValue = 2_147_483_647;
500+
return duration > maxTimeoutValue ? maxTimeoutValue : duration;
499501
}
500502

501503
/**

0 commit comments

Comments
 (0)