Auth0 Home Blog Docs

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 {
		realm: 'Username-Password-Authentication',
	}, (err, authResult) => {
		if (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.”


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