Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
NSeydoux committed Jan 15, 2025
1 parent 3990a88 commit a318914
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/browser/src/login/oidc/ClientRegistrar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
? {
Expand Down
2 changes: 1 addition & 1 deletion packages/node/src/login/oidc/ClientRegistrar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) &&
Expand Down

0 comments on commit a318914

Please sign in to comment.