Auth0 Home Blog Docs

Allow same username with database connection


#1

Hello,

Is it possible to remove the restriction of signing with a username which already exist but different email?

I will take care of the duplicates usernames in my database but I don’t want to force my usernames to non-exist names. Is it possible?

Thank you,
Roni


#2

The username field in an Auth0 database connection is required to be unique. I don’t believe there is any way around this. We’ve had similar problems. Our eventual solution will be to move away from usernames altogether in favour of email address logins only.