summaryrefslogtreecommitdiffhomepage
path: root/packages/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src')
-rw-r--r--packages/server/src/assertion/verifyAssertionResponse.ts4
-rw-r--r--packages/server/src/attestation/verifyAttestationResponse.ts4
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) {