Hello!
I found out that okta node sdk doesn’t support “Recovery Token” authentication during password reset/unlock account link.
But i am not sure, if that is not supported, how does “Forgot password” functionality works, because that has to go through token verification associated with each user who has requested the password reset.
So password reset link is something like
http://localhost:XXXX/#/user/reset?token=${recoveryToken}"
I do see recovery token in email
I click on it.
Try to reset the password
Send request to the backend service, which is in javascript
Now which method should i use to authenticate the token??
I got suggestions to directly call the api which will authenticate the token and follow api path , instead of package . But i feel, if forgot password works then there should be token verification function too.
I tried this too
var query = {
userId: userInfo.id,
queryParams:{
sendEmail : false,
provider: 'OKTA'
}
};
oktaUser.resetPassword(query).then(function(token){
console.log(token);
return resolve();
})
But every time user gets email, instead of setting sendEmail to false.