File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -171,13 +171,13 @@ export async function registrationVerify(request, reply) {
171171 return reply . code ( 400 ) . send ( { error : 'Verification failed' } ) ;
172172 }
173173
174- const { credential : regCredential , credentialPublicKey , counter } = verification . registrationInfo ;
174+ const { credential : regCredential } = verification . registrationInfo ;
175175
176176 await accounts . addPasskey ( accountId , {
177- credentialId : Buffer . from ( regCredential . id ) . toString ( 'base64url' ) ,
178- publicKey : Buffer . from ( credentialPublicKey ) . toString ( 'base64url' ) ,
179- counter,
180- transports : credential . response ?. transports || [ ] ,
177+ credentialId : regCredential . id , // Already base64url string
178+ publicKey : Buffer . from ( regCredential . publicKey ) . toString ( 'base64url' ) ,
179+ counter : regCredential . counter ,
180+ transports : regCredential . transports || credential . response ?. transports || [ ] ,
181181 name : name || 'Security Key'
182182 } ) ;
183183
You can’t perform that action at this time.
0 commit comments