Skip to content

TypeScript API / @laikacms/server/oauth2 / verifyOAuthTOTPSetup

Function: verifyOAuthTOTPSetup() ​

ts
function verifyOAuthTOTPSetup(
   userId, 
   code, 
   config
): Promise<{
  error?: string;
  success: boolean;
}>;

Verify TOTP setup and enable 2FA for OAuth flow

Parameters ​

ParameterType
userIdstring
codestring
configOAuthTotpConfig

Returns ​

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

Released under the MIT License.