diff options
author | Matthew Miller <matthew@millerti.me> | 2021-01-21 13:35:24 -0800 |
---|---|---|
committer | Matthew Miller <matthew@millerti.me> | 2021-01-21 13:35:24 -0800 |
commit | 5fa62a7f182028ddb25d4ae450756e2f290efbb7 (patch) | |
tree | 1eedb310c0ef6d493e2837812db4f1f8d3932850 | |
parent | 61deecf7a86a5a06e351469a72b2785ffa940d4e (diff) |
Rename variables to match existing naming
-rw-r--r-- | packages/server/src/assertion/verifyAssertionResponse.ts | 4 | ||||
-rw-r--r-- | packages/server/src/attestation/verifyAttestationResponse.ts | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/packages/server/src/assertion/verifyAssertionResponse.ts b/packages/server/src/assertion/verifyAssertionResponse.ts index 44b679d..0c76fae 100644 --- a/packages/server/src/assertion/verifyAssertionResponse.ts +++ b/packages/server/src/assertion/verifyAssertionResponse.ts @@ -134,8 +134,8 @@ export default function verifyAssertionResponse(options: Options): VerifiedAsser } else { // Go through each expected RP ID and try to find one that matches const foundMatch = expectedRPID.some(expected => { - const expectedIDHash = toHash(Buffer.from(expected, 'ascii')); - return rpIdHash.equals(expectedIDHash); + const expectedRPIDHash = toHash(Buffer.from(expected, 'ascii')); + return rpIdHash.equals(expectedRPIDHash); }); if (!foundMatch) { diff --git a/packages/server/src/attestation/verifyAttestationResponse.ts b/packages/server/src/attestation/verifyAttestationResponse.ts index ecc3331..3940ea6 100644 --- a/packages/server/src/attestation/verifyAttestationResponse.ts +++ b/packages/server/src/attestation/verifyAttestationResponse.ts @@ -126,8 +126,8 @@ export default async function verifyAttestationResponse( } else { // Go through each expected RP ID and try to find one that matches const foundMatch = expectedRPID.some(expected => { - const expectedIDHash = toHash(Buffer.from(expected, 'ascii')); - return rpIdHash.equals(expectedIDHash); + const expectedRPIDHash = toHash(Buffer.from(expected, 'ascii')); + return rpIdHash.equals(expectedRPIDHash); }); if (!foundMatch) { |