WorkOS

user_management.users.auth_factors.create

Enrolls a user in a new [authentication factor](/reference/authkit/mfa/authentication-factor).

Remote workos

Other tools also called user_management.users.auth_factors.create? See providers with this name

Input Schema


            {
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "description": "The type of the factor to enroll."
    },
    "totp_user": {
      "type": "string",
      "description": "The user's account name displayed in their authenticator app."
    },
    "totp_issuer": {
      "type": "string",
      "description": "Your application or company name displayed in the user's authenticator app."
    },
    "totp_secret": {
      "type": "string",
      "description": "The Base32-encoded shared secret for TOTP factors. This can be provided when creating the auth factor, otherwise it will be generated. The algorithm used to derive TOTP codes is SHA-1, the code length is 6 digits, and the timestep is 30 seconds – the secret must be compatible with these parameters."
    },
    "userlandUserId": {
      "type": "string",
      "description": "The ID of the [user](/reference/authkit/user)."
    }
  }
}
          

Provider

WorkOS →