Skip to content

Commit

Permalink
fix: store webauthn transports properly when registering yubikey
Browse files Browse the repository at this point in the history
  • Loading branch information
authcompanion committed Apr 24, 2024
1 parent 65fb652 commit fdcada3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion services/webAuthn/registrationOptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ export const registrationOptionsHandler = async function (request, reply) {
userID: userUUID,
userName: userName,
timeout: 60000,
attestationType: "indirect",
authenticatorSelection: {
userVerification: "preferred",
residentKey: "required",
Expand Down
2 changes: 1 addition & 1 deletion services/webAuthn/registrationVerification.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const registrationVerificationHandler = async function (request, reply) {
credentialID: credentialIDHex,
credentialPublicKey: credentialPublicKeyHex,
counter: counter,
transports: request.body.response.transports,
transports: `${request.body.response.transports}`,
})
.returning({ id: this.authenticator.id });

Expand Down

0 comments on commit fdcada3

Please sign in to comment.