I implemented Auth0 as below
const authInit = new auth0.WebAuth({
domain: authConfig.domain,
clientID: authConfig.clientId,
redirectUri: authConfig.callbackUrl,
audience: 'https://MyDomain.auth0.com/api/v2/',
responseType: 'token id_token',
scope: 'openid'
})
loginWithEmailPassword(email, password) {
return new Promise((resolve, reject) => {
authInit.popup.loginWithCredentials({
connection: 'Username-Password-Authentication',
email: email,
password: password,
scope: 'openid'
}, function(err, authResult) {
if (err) reject(err)
resolve(authResult)
})
})
}
And Enabled option ‘Allow Skipping User Consent’ in my Api Configuration, But this error still occur
code:"consent_required"
description:"Consent required"
error:"consent_required"
error_description:"Consent required"