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
| Parameter | Type |
|---|---|
userId | string |
code | string |
config | OAuthTotpConfig |
Returns
Promise<{ error?: string; success: boolean; }>