Auth0 Home Blog Docs

Custom database - Try works, actual login does not


For testing purposes, I have simple javascript that validates the login. When I use the Try-button, it succeeds, however (after deleting the just created user) logging in as this user does not. The DB-connection has been enabled for my app.

I’m currently using a free plan, but still have 20-something days left for trial of paid features. Could this be the problem?

This is my login code:

if (email === ‘’) {
if (password === ‘Welkom01’) {
var profile = {
“email”: email,
“email_verified”: true,
“nickname”: “dbuser”,
“picture”: “”,
“id”: “docati-IdP-old|103547991597142817347”
callback(null, profile);

callback(new WrongUsernameOrPasswordError(email, “niet werkende combi”));