u2f registration

This commit is contained in:
peintnermax
2024-09-05 15:21:29 +02:00
parent 4a1c2337ef
commit 37dd8d4b38

View File

@@ -62,11 +62,12 @@ export async function verifyU2F(command: VerifyU2FCommand) {
throw new Error("Could not get session"); throw new Error("Could not get session");
} }
const req = create( const req = create(VerifyU2FRegistrationRequestSchema, {
VerifyU2FRegistrationRequestSchema, u2fId: command.u2fId,
// TODO: why did we passed the request instead of body here? publicKeyCredential: command.publicKeyCredential,
command, tokenName: passkeyName,
); userId,
});
return verifyU2FRegistration(req); return verifyU2FRegistration(req);
} }