reactjs - Okta ForgotPassword recovery not sending SMS token -


using okta-auth-js created simple form asks username (email) , verification type (sms, email, call). email works fine, nothing gets sent sms , call phone.

export function recoverpassword(values, auth) {     return (dispatch) => {         dispatch(recoverpasswordrequest());         return auth.oktaauth.forgotpassword({             username   : values.username,             factortype : values.recoverymethod,         });     } }  const dispatchrecoverpassword = (values, dispatch, props)=>{     return dispatch(recoverpassword(values, props.auth))     .then((transaction) =>{         let factortype = transaction.factortype;         if(factortype === 'email') {             //email form done         }         else if(factortype === 'sms'){             //add transaction state, , move next form page          }     })     .catch((err) =>{             dispatch(recoverpasswordfailure(err))     }) };   export function verifysmstoken(token, transaction, auth){     return (disptach) =>{         return transaction.verify({passcode: token});     } }   verify: (values, dispatch, props) =>{     dispatch(verifysmstoken(values.verificationtoken, props.transaction, props.auth))     .then((resp) =>{         console.log(resp);     })     .catch((err) =>{         console.log(err);         dispatch(recoverpasswordfailure(err));     }); } 

i have mfa set on okta, , enrolled in both call , sms, when enrolled got text , call okta, enrolled on site, not using api. need different send txt/call when using api? or there way forgot password on site , not make forms myself(preferred)?

edit: found how enable sms,call,etc password recovery inside of okta. had switch 'classic look' find it. under security -> authentication had edit account recovery enable sms , call. still curious though why no code sent when using api


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -