Custom database - in our user database, we have emailAddress not email

I was looking into using a custom database (using MongoDB) to store some Auto0 data. But in our existing user collection, we have the field called emailAddress not email which looks like the Database Action Scripts require. Can we use the emailAddress in place of the required email field so that we do not have make changes to our existing collection structure (and application codes)?

Please advise.

Thanks!

Using a custom DB (with the 6 scripts to handle the various scenarios like login, get_user etc), you can build your profile as you want. There is no tie to the external DB names.

However, the email field is actually set by Auth0 when the user logs in - it comes from what the user typed in, rather than being filled from a field in the external DB. You pass this email through to the legacy DB for validation…

John