spec(deps): update @simplewebauthn/server to 8.3.5 (MisskeyIO#198)
This commit is contained in:
parent
16f213ef0c
commit
462b5470b7
|
@ -74,7 +74,7 @@
|
|||
"@nestjs/core": "10.1.0",
|
||||
"@nestjs/testing": "10.1.0",
|
||||
"@peertube/http-signature": "1.7.0",
|
||||
"@simplewebauthn/server": "^7.4.0",
|
||||
"@simplewebauthn/server": "^8.3.5",
|
||||
"@sinonjs/fake-timers": "10.3.0",
|
||||
"@swc/cli": "0.1.62",
|
||||
"@swc/core": "1.3.70",
|
||||
|
@ -164,7 +164,7 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"@jest/globals": "29.6.1",
|
||||
"@simplewebauthn/typescript-types": "^7.4.0",
|
||||
"@simplewebauthn/typescript-types": "^8.3.4",
|
||||
"@swc/jest": "0.2.26",
|
||||
"@types/accepts": "1.3.5",
|
||||
"@types/archiver": "5.3.2",
|
||||
|
|
|
@ -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',
|
||||
|
|
1409
pnpm-lock.yaml
1409
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue