firebase / firebase-admin-dotnet

Firebase Admin .NET SDK
https://firebase.google.com/docs/admin/setup
Apache License 2.0
370 stars 131 forks source link

fix(auth): Added EMAIL_EXISTS Auth error message. #141

Closed kcieslinski closed 4 years ago

kcieslinski commented 4 years ago

Added missing EMAIL_EXISTS Auth error message. Not sure if the DUPLICATE_EMAIL message is already deprecated, as firebase api documentation is not clear about this for me.

RELEASE NOTE: User management APIs now correctly raise ErrorCode.AlreadyExists when an already in-use email address is specified for a user.

hiranya911 commented 4 years ago

Thanks @kcieslinski. We need to handle both error codes. See https://github.com/firebase/firebase-admin-python/pull/348 for some more context.