Skip to content

TypeScript API / @laikacms/server/oauth2 / setupTOTP

Function: setupTOTP() ​

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

Start TOTP setup for a user

Parameters ​

ParameterType
userIdstring
userEmailstring
configTOTPConfig

Returns ​

Promise<TOTPSetupData>

Released under the MIT License.