Hi guys, try to login with a user that have MFA enabled
so i expect to get mfa_token in the response
i worked with this guide LINK
but the POST is just returning
{
access_token: 'eyJhbGc...',
id_token: 'eyJhbGci...',
scope: 'openid profile',
expires_in: 86400,
token_type: 'Bearer'
}
this is the code
var options = {
method: 'POST',
url: 'https://<NAME>.auth0.com/oauth/token',
headers: {'content-type': 'application/x-www-form-urlencoded'},
data: new URLSearchParams({
grant_type: 'password',
username: 'USER',
password: 'PASS',
scope: 'openid profile read:sample',
client_id: '...25h...',
client_secret: '...70GX-xe...'
})
};
axios.request(options).then(function (response) {
console.log(response.data);
}).catch(function (error) {
console.error(error);
});