I'm using Custom Tokens (createCustomToken()
and signInWithCustomToken()
) for user authentication which accepts a userID
and email
, and an intermediate step verifies the email by sending a one time password.
It was all great until I just ran into an issue which is a major roadblock:
{
code: 'auth/email-already-exists',
message: 'The email address is already in use by another account.'
}
Quite a few users share the same email address because there are main accounts (parent) and sub-accounts (children) so although the user ID is different but the email is same.
I really hope there's a way to enable users with the same email addresses?