TagoIO SDK for JavaScript and TypeScript
    Preparing search index...

    Function enableOTP

    • Enable OTP for a given OTP Type. You will be requested to confirm the operation with a pin code.

      Parameters

      • credentials: { email: string; password: string }
      • typeOTP: OTPType

      Returns Promise<string>

      If receive an error "Authorization Denied", check policy in Access Management.

      const account = new Account({ token: "YOUR-PROFILE-TOKEN" });
      const result = account.enableOTP({ email: "user@example.com", password: "password" }, "sms");
      console.log(result);