spec(deps): update @simplewebauthn/server to 8.3.5 (MisskeyIO#198)

This commit is contained in:
まっちゃとーにゅ 2023-10-30 00:41:31 +09:00 committed by GitHub
parent 16f213ef0c
commit 462b5470b7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 1219 additions and 201 deletions

View file

@ -7,7 +7,8 @@ import { Inject, Injectable } from '@nestjs/common';
import * as Redis from 'ioredis';
import {
generateAuthenticationOptions,
generateRegistrationOptions, verifyAuthenticationResponse,
generateRegistrationOptions,
verifyAuthenticationResponse,
verifyRegistrationResponse,
} from '@simplewebauthn/server';
import { AttestationFormat, isoCBOR } from '@simplewebauthn/server/helpers';
@ -60,7 +61,7 @@ export class WebAuthnService {
userId: userId,
});
const registrationOptions = generateRegistrationOptions({
const registrationOptions = await generateRegistrationOptions({
rpName: relyingParty.rpName,
rpID: relyingParty.rpId,
userID: userId,
@ -150,7 +151,7 @@ export class WebAuthnService {
throw new IdentifiableError('f27fd449-9af4-4841-9249-1f989b9fa4a4', 'no keys found');
}
const authenticationOptions = generateAuthenticationOptions({
const authenticationOptions = await generateAuthenticationOptions({
allowCredentials: keys.map(key => (<PublicKeyCredentialDescriptorFuture>{
id: Buffer.from(key.id, 'base64url'),
type: 'public-key',