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");
}
const req = create(
VerifyU2FRegistrationRequestSchema,
// TODO: why did we passed the request instead of body here?
command,
);
const req = create(VerifyU2FRegistrationRequestSchema, {
u2fId: command.u2fId,
publicKeyCredential: command.publicKeyCredential,
tokenName: passkeyName,
userId,
});
return verifyU2FRegistration(req);
}