Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit cc6e9d6

Browse files
oovzSalakar
authored andcommitted
Correct error codes for verifyPhoneNumber function (#158)
Removed old two which are incorrect. Added 5 error codes in Firebase JS Doc
1 parent 2cee5ef commit cc6e9d6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/auth/reference/auth.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -556,8 +556,11 @@ firebase.auth()
556556

557557
| Code | Message |
558558
| --------- | ------- |
559-
| auth/invalid-email | Thrown if the email address is not valid. |
560-
| auth/user-not-found | Thrown if there is no user corresponding to the email address. |
559+
| auth/captcha-check-failed | Thrown if the reCAPTCHA response token was invalid, expired, or if this method was called from a non-whitelisted domain. |
560+
| auth/invalid-phone-number | Thrown if the phone number has an invalid format. |
561+
| auth/missing-phone-number | Thrown if the phone number is missing. |
562+
| auth/quota-exceeded | Thrown if the SMS quota for the Firebase project has been exceeded. |
563+
| auth/user-disabled | Thrown if the user corresponding to the given phone number has been disabled. |
561564

562565
### sendPasswordResetEmail
563566
[method]sendPasswordResetEmail(email, actionCodeSettings) returns Promise containing void;[/method]

0 commit comments

Comments
 (0)