enrollFactor for sms - how pass phone number?

In the previous version I could call enrollFactor for sms and pass it the phoneNumber through profile of the factor . How do I do this in v7?


Is your Okta Org a classic Org?
If so you should be able to,

  profile: {
    phoneNumber: '+1-555-415-1337',
    updatePhone: true

If your Org is an OIE Org and you are using the Interaction code flow, enrollment is configured via policies in your Okta Org. Below is a link to documentation detailing the steps,

The sample app for the above can be found at,

A sample app for client side auth-js can be found at,

Thank You,