diff --git a/packages/browser/src/login/oidc/ClientRegistrar.ts b/packages/browser/src/login/oidc/ClientRegistrar.ts index c6e3a2f63..9fdd12e67 100644 --- a/packages/browser/src/login/oidc/ClientRegistrar.ts +++ b/packages/browser/src/login/oidc/ClientRegistrar.ts @@ -77,7 +77,8 @@ export default class ClientRegistrar implements IClientRegistrar { // Expiration is only applicable to confidential clients. // Note that Date.now() is in milliseconds, and expirationDate in seconds. const expired = - storedClientSecret !== undefined && Math.floor(Date.now() / 1000) > expirationDate; + storedClientSecret !== undefined && + Math.floor(Date.now() / 1000) > expirationDate; if (storedClientId && isKnownClientType(storedClientType) && !expired) { return storedClientSecret !== undefined ? { diff --git a/packages/node/src/login/oidc/ClientRegistrar.ts b/packages/node/src/login/oidc/ClientRegistrar.ts index fc2a41c6a..bb8f11b1d 100644 --- a/packages/node/src/login/oidc/ClientRegistrar.ts +++ b/packages/node/src/login/oidc/ClientRegistrar.ts @@ -111,7 +111,7 @@ export default class ClientRegistrar implements IClientRegistrar { storedClientSecret !== undefined && storedClientType === "dynamic" && // Note that Date.now() is in milliseconds, and expirationDate in seconds. - Math.floor(Date.now() / 1000) > expirationDate; + Math.floor(Date.now() / 1000) > expirationDate; if ( storedClientId !== undefined && isKnownClientType(storedClientType) &&