Skip to content

TypeScript API / @laikacms/server/oauth2 / verifyTOTPLogin

Function: verifyTOTPLogin() ​

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

Verify TOTP code during login

Parameters ​

ParameterType
userIdstring
codestring
configTOTPConfig

Returns ​

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

Released under the MIT License.