Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ public class AuthErrorHandlerTest
AuthErrorCode.UidAlreadyExists,
},
new object[]
{
"EMAIL_EXISTS",
ErrorCode.AlreadyExists,
AuthErrorCode.EmailAlreadyExists,
},
new object[]
{
"PHONE_NUMBER_EXISTS",
ErrorCode.AlreadyExists,
Expand Down
7 changes: 7 additions & 0 deletions FirebaseAdmin/FirebaseAdmin/Auth/AuthErrorHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ internal sealed class AuthErrorHandler
AuthErrorCode.UidAlreadyExists,
"The user with the provided uid already exists")
},
{
"EMAIL_EXISTS",
new ErrorInfo(
ErrorCode.AlreadyExists,
AuthErrorCode.EmailAlreadyExists,
"The user with the provided email already exists")
},
{
"PHONE_NUMBER_EXISTS",
new ErrorInfo(
Expand Down