When signing up using email/password user email is lost


I recently realized that when users sign up to our platform using an email and a password the email address doesn’t save on auth0, it is sent correctly according to the network and auth0 logs but by the time the account reaches the post registration flow there is no email attached to the account id, however the email is saved correctly to our custom database connection.

This is the script run to save it to our DB, if that helps

async function create(user, callback) {
  const bcrypt = require('bcrypt');
  const fetch = require('node-fetch');
  const URL = require('url').URL;
  const { api_base_url, api_bearer } = configuration;

  try {
    const url = new URL('/user/create', api_base_url);
    url.searchParams.append('email', user.email);

    const hashedPassword = await new Promise((resolve, reject) => {
      bcrypt.hash(user.password, 10, function (err, hashedPassword) {
        if (err) reject(err);
    url.searchParams.append('password', hashedPassword);

    const response = await fetch(url.toString(), {
      method: 'PUT',
      headers: {
        'Content-Type': 'application/json',
        Authorization: `Bearer ${api_bearer}`,
      body: JSON.stringify({}),

    if (!response.ok) {
      const { detail } = await response.json();
      // Parse error message
      return callback(new ValidationError(detail, detail));

    return callback(null);
  } catch (err) {
    return callback(err);

This issue has been solved, we missed the fact that database importing had been disabled.