|
@ -13,16 +13,16 @@ import { |
|
|
import { REQUEST } from '@nestjs/core'; |
|
|
import { REQUEST } from '@nestjs/core'; |
|
|
import { JwtService } from '@nestjs/jwt'; |
|
|
import { JwtService } from '@nestjs/jwt'; |
|
|
import { |
|
|
import { |
|
|
|
|
|
generateAuthenticationOptions, |
|
|
GenerateAuthenticationOptionsOpts, |
|
|
GenerateAuthenticationOptionsOpts, |
|
|
|
|
|
generateRegistrationOptions, |
|
|
GenerateRegistrationOptionsOpts, |
|
|
GenerateRegistrationOptionsOpts, |
|
|
VerifiedAuthenticationResponse, |
|
|
VerifiedAuthenticationResponse, |
|
|
VerifiedRegistrationResponse, |
|
|
VerifiedRegistrationResponse, |
|
|
VerifyAuthenticationResponseOpts, |
|
|
|
|
|
VerifyRegistrationResponseOpts, |
|
|
|
|
|
generateAuthenticationOptions, |
|
|
|
|
|
generateRegistrationOptions, |
|
|
|
|
|
verifyAuthenticationResponse, |
|
|
verifyAuthenticationResponse, |
|
|
verifyRegistrationResponse |
|
|
VerifyAuthenticationResponseOpts, |
|
|
|
|
|
verifyRegistrationResponse, |
|
|
|
|
|
VerifyRegistrationResponseOpts |
|
|
} from '@simplewebauthn/server'; |
|
|
} from '@simplewebauthn/server'; |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
@ -80,7 +80,6 @@ export class WebAuthService { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public async verifyAttestation( |
|
|
public async verifyAttestation( |
|
|
deviceName: string, |
|
|
|
|
|
credential: AttestationCredentialJSON |
|
|
credential: AttestationCredentialJSON |
|
|
): Promise<AuthDeviceDto> { |
|
|
): Promise<AuthDeviceDto> { |
|
|
const user = this.request.user; |
|
|
const user = this.request.user; |
|
|