We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e38c99c + 48e53b9 commit ebeca23Copy full SHA for ebeca23
projects/lib/src/oauth-service.ts
@@ -495,7 +495,9 @@ export class OAuthService extends AuthConfig implements OnDestroy {
495
const now = this.dateTimeService.now();
496
const delta =
497
(expiration - storedAt) * this.timeoutFactor - (now - storedAt);
498
- return Math.max(0, delta);
+ const duration = Math.max(0, delta);
499
+ const maxTimeoutValue = 2_147_483_647;
500
+ return duration > maxTimeoutValue ? maxTimeoutValue : duration;
501
}
502
503
/**
0 commit comments