Hello,
I want to force the user to complete a push challenge in certain conditions once they are already logged in. So far this is what I have:
` var options = {
method: ‘POST’,
url: ${AUTH0_URL}/mfa/challenge,
data: {
client_id: process.env.CLIENT_ID,
client_secret: process.env.CLIENT_SECRET,
challenge_type: ‘oob’,
authenticator_id: req.body.pushID,
mfa_token: req.oidc.accessToken.access_token,
},
};
axios.request(options).then(function (response) {
console.log(response.data);
res.send(response.data)
}).catch(function (error) {
console.error(error);
});`
I think the issue is that I am not getting the right token and that it doesn’t have the right scopes. How can I request the correct token with the right scopes?