I’m trying to set up universal login with the hosted page, using the custom UI template.
Calls to /authorize return the login/sign up screen as expected, but after a successful login I get the above error.
Here’s the section of code for webAuth, the only change to default I’ve made is specifying the scope:
var params = Object.assign({
domain: config.auth0Domain,
clientID: config.clientID,
redirectUri: config.callbackURL,
responseType: 'code'
}, config.internalOptions);
var webAuth = new auth0.WebAuth(params);
var databaseConnection = 'Username-Password-Authentication';
function login(e) {
e.preventDefault();
var username = document.getElementById('email').value;
var password = document.getElementById('password').value;
webAuth.login({
realm: databaseConnection,
username: username,
password: password
}, function(err) {
if (err) displayError(err);
});
}
Is there a setting I’ve missed somewhere?