Skip to content

TypeScript API / @laikacms/server/oauth2 / verifyOAuthTOTPLogin

Function: verifyOAuthTOTPLogin() ​

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

Verify TOTP code during OAuth login

Parameters ​

ParameterType
userIdstring
codestring
configOAuthTotpConfig

Returns ​

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

Released under the MIT License.