Skip to content

TypeScript API / @laikacms/server/oauth2 / setupOAuthTOTP

Function: setupOAuthTOTP() ​

ts
function setupOAuthTOTP(
   userId, 
   userEmail, 
   config
): Promise<TOTPSetupData>;

Start TOTP setup for OAuth flow

Parameters ​

ParameterType
userIdstring
userEmailstring
configOAuthTotpConfig

Returns ​

Promise<TOTPSetupData>

Released under the MIT License.