Skip to content

Commit

Permalink
chore: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
panva committed Apr 14, 2022
1 parent 3adf1a4 commit 7a417c3
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,10 @@ class BaseClient {
}
}

if (typeof maxAge === 'number' && payload.auth_time + maxAge < timestamp - this[CLOCK_TOLERANCE]) {
if (
typeof maxAge === 'number' &&
payload.auth_time + maxAge < timestamp - this[CLOCK_TOLERANCE]
) {
throw new RPError({
printf: [
'too much time has elapsed since the last End-User authentication, max_age %i, auth_time: %i, now %i',
Expand All @@ -794,7 +797,11 @@ class BaseClient {
});
}

if (nonce !== skipNonceCheck && (payload.nonce || nonce !== undefined) && payload.nonce !== nonce) {
if (
nonce !== skipNonceCheck &&
(payload.nonce || nonce !== undefined) &&
payload.nonce !== nonce
) {
throw new RPError({
printf: ['nonce mismatch, expected %s, got: %s', nonce, payload.nonce],
jwt: idToken,
Expand Down

0 comments on commit 7a417c3

Please sign in to comment.