Skip to content

TypeScript API / @laikacms/server/oauth2 / verifyRegistration

Function: verifyRegistration() ​

ts
function verifyRegistration(
   response, 
   config, 
   credentialName?
): Promise<{
  credentialId?: string;
  error?: string;
  success: boolean;
}>;

Verify registration response and store credential

Parameters ​

ParameterType
responseRegistrationResponse
configPasskeyConfig
credentialName?string

Returns ​

Promise<{ credentialId?: string; error?: string; success: boolean; }>

Released under the MIT License.