Skip to content

Commit 94abdc5

Browse files
committed
Propagate customData in FireBaseError when the user is disabled.
1 parent 7405e7d commit 94abdc5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/auth/src/api/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ export async function _performFetchWithErrorHandling<V>(
159159
);
160160
} else if (serverErrorCode === ServerError.EMAIL_EXISTS) {
161161
throw _makeTaggedError(auth, AuthErrorCode.EMAIL_EXISTS, json);
162+
} else if (serverErrorCode === ServerError.USER_DISABLED) {
163+
throw _makeTaggedError(auth, AuthErrorCode.USER_DISABLED, json);
162164
}
163165
const authError =
164166
errorMap[serverErrorCode as ServerError] ||

0 commit comments

Comments
 (0)