We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c454de7 commit dfd84e3Copy full SHA for dfd84e3
contracts/utils/cryptography/WebAuthn.sol
@@ -247,7 +247,6 @@ library WebAuthn {
247
*/
248
function tryDecodeAuth(bytes calldata input) internal pure returns (bool success, WebAuthnAuth calldata auth) {
249
// Default result (optimistic)
250
- success = true;
251
assembly ("memory-safe") {
252
auth := input.offset
253
}
@@ -274,5 +273,7 @@ library WebAuthn {
274
273
input.length - authenticatorDataOffset - 0x20 < authenticatorDataLength ||
275
input.length - clientDataJSONOffset - 0x20 < clientDataJSONLength
276
) return (false, auth);
+
277
+ return (true, auth);
278
279
0 commit comments