Skip to content

TypeScript API / @laikacms/server/oauth2 / hasTOTPEnabled

Function: hasTOTPEnabled() ​

ts
function hasTOTPEnabled(userId, config): Promise<boolean>;

Check if user has TOTP enabled

Parameters ​

ParameterType
userIdstring
configTOTPConfig

Returns ​

Promise<boolean>

Released under the MIT License.