When I am trying to login with the mobile device with ionic framework getting following error message, in the browser it’s working perfectly
Error Log :: {“crossDomain”:true,“method”:“POST”,“url”:“https://xxxxxx.auth0.com/co/authenticate”}**
Here is the codebase
auth0 = new auth0.WebAuth({
clientID: AUTH_CONFIG.clientID,
domain: AUTH_CONFIG.domain,
responseType: ‘token id_token’,
redirectUri: ‘com.xxxxx.app://authlandingpage’,
packageIdentifier:‘com.xxxxx.app’,
callbackURL: ‘com.xxxxx.app://xxxx.us.auth0.com/cordova/com.xxxxxx.app/callback’,
scope: ‘openid email profile read:messages write:messages’,
});
this.auth0.redirect.loginWithCredentials({
connection: 'Username-Password-Authentication',
username: username,
password: password
}, function(err, authResult) {
});
Thanks for your help.