update deps (MisskeyIO#775)

This commit is contained in:
あわわわとーにゅ 2024-10-23 05:48:11 +09:00 committed by GitHub
parent 6e07857b1c
commit f33e1b5e87
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
17 changed files with 3584 additions and 2046 deletions

View file

@ -96,13 +96,13 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
}
const keyInfo = await this.webAuthnService.verifyRegistration(me.id, ps.credential);
const keyId = keyInfo.credentialID;
const keyId = keyInfo.id;
await this.userSecurityKeysRepository.insert({
id: keyId,
userId: me.id,
name: ps.name,
publicKey: Buffer.from(keyInfo.credentialPublicKey).toString('base64url'),
publicKey: Buffer.from(keyInfo.publicKey).toString('base64url'),
counter: keyInfo.counter,
credentialDeviceType: keyInfo.credentialDeviceType,
credentialBackedUp: keyInfo.credentialBackedUp,