Error_description: "Unknown realm Username-Password-Authentication."

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.

I figured out the issue was that the realm was the custom database I was using. So I changed it and it works, but I get a new error related to
errorDescription: “Unable to configure verification page.”

1 Like

I got it working now by removing connection type. It is unrelated when you are using realm, you don’t need it.

2 Likes