Skip to content
This repository was archived by the owner on Jan 20, 2025. It is now read-only.

Commit 50e336d

Browse files
update code
1 parent 584ef96 commit 50e336d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/webauthn/index.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,7 @@ export class WebAuthnController {
120120
if (!compareBytes(rpIdHash, expectedRpIdHash)) {
121121
return false;
122122
}
123-
const flagsBits = authData[32].toString(2);
124-
if (flagsBits.charAt(flagsBits.length - 1) !== "1") {
123+
if ((authData[32] & 0x01) !== 1) {
125124
return false;
126125
}
127126
return true;

0 commit comments

Comments
 (0)