Skip to main content

Function: verifyPasskeyRegistrationResponse()

verifyPasskeyRegistrationResponse(config, expectedChallenge, payload): Promise<any>

Defined in: auth/src/auth/shared.ts:732

Finishes a registration ceremony: verifies the client-submitted attestation response against the stored challenge and relying party configuration.

Parameters​

config​

PasskeyConfig

The relying party configuration to verify the response against.

expectedChallenge​

string

The challenge previously stored in the session by generatePasskeyRegistrationOptions().

payload​

any

The client-submitted RegistrationResponseJSON.

Returns​

Promise<any>