I am getting this when I am testing login function on my angular application.
I am passing password and username on click event to auth function below:
public login(username: string, password: string, renew?: boolean): void {
this.auth0.login({
realm: 'Username-Password-Authentication',
username,
password
}, (err, authResult) => {
if (err) {
console.log(err);
throw new Error(`Error: ${err.error_description}. Check the console for further details.`);
} else if (authResult && authResult.accessToken && authResult.idToken) {
this.setSession(authResult, renew);
}
});
}
I need help, on the realm, I copied this from one of their tutorials, maybe the realm is outdated.