We have been using the Auth0 SDK for web for a few years now with no issues. Out of the blue the .validateUser() method has started returning “response_type parameter is mandatory”.
Here is the code that is failing:
var auth0WebInstance = new Auth0({
domain: '#{AUTH0_DOMAIN}',
clientID: '#{AUTH0_CLIENT_ID}',
callbackURL: '#{AUTH0_CALLBACK_URL}',
callbackOnLocationHash: false
});
loginOpts = {
connection: 'someConnection',
username: $('#username').val().toLowerCase(),
password: $('#password').val()
};
auth0WebInstance.validateUser(loginOpts, function (err, valid) {...}
This worked fine for the last few years, now as of today we keep getting : “response_type parameter is mandatory” when we make the .validateUser call. The strange part is that calling :
auth0WebInstance.login(loginOpts, function (err, valid) {...}
works just fine.