You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a `ManagementAPI` instance by providing the domain from the [Application dashboard](https://manage.auth0.com/#/applications) and Token Provider.
* Associates or adds a new OOB authenticator for multi-factor authentication (MFA).
1460
+
* Confidential clients (Regular Web Apps) <strong>must</strong> have a client secret configured on this {@code AuthAPI} instance.
1461
+
* <pre>
1462
+
* {@code
1463
+
* try {
1464
+
* CreatedOobResponse result = authAPI.addOobAuthenticator("the-mfa-token", Arrays.asList("sms", "email"), "phone-number", "email-address")
1465
+
* .execute()
1466
+
* .getBody();
1467
+
* } catch (Auth0Exception e) {
1468
+
* //Something happened
1469
+
* }
1470
+
* }
1471
+
* </pre>
1472
+
*
1473
+
* @param mfaToken The token received from mfa_required error. Must not be null.
1474
+
* @param oobChannels The type of OOB channels supported by the client. Must not be null.
1475
+
* @param phoneNumber The phone number for "sms" or "voice" channels. May be null if not using "sms" or "voice".
1476
+
* @param emailAddress The email address for "email" channel. May be null if not using "email".
1477
+
* @return a Request to execute.
1478
+
* @see <a href="https://auth0.com/docs/secure/multi-factor-authentication/authenticate-using-ropg-flow-with-mfa/enroll-challenge-sms-voice-authenticators#enroll-with-sms-or-voice">Enroll with SMS or voice</a>
0 commit comments