Commit 3c3e415
authored
Correctly parses error codes with details messages in Firebase Auth. (#422)
* Correctly parses error codes with details messages in Firebase Auth.
```
{
"error": {
"errors": [
{
"domain": "global",
"reason": "invalid",
"message": "INVALID_PHONE_NUMBER : Phone number is too short"
}
],
"code": 400,
"message": "INVALID_PHONE_NUMBER : Phone number is too short"
}
}
```
The above will throw error code auth/invalid-phone-number and the
message will be "Phone number is too short".
* Adds CHANGELOG note for fix.1 parent 25098bf commit 3c3e415
3 files changed
+32
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
151 | 159 | | |
152 | 160 | | |
153 | 161 | | |
154 | | - | |
| 162 | + | |
| 163 | + | |
155 | 164 | | |
156 | 165 | | |
157 | 166 | | |
| |||
330 | 339 | | |
331 | 340 | | |
332 | 341 | | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
333 | 346 | | |
334 | 347 | | |
335 | 348 | | |
| |||
680 | 693 | | |
681 | 694 | | |
682 | 695 | | |
683 | | - | |
684 | | - | |
| 696 | + | |
| 697 | + | |
685 | 698 | | |
686 | 699 | | |
687 | 700 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
91 | 98 | | |
92 | 99 | | |
93 | 100 | | |
| |||
104 | 111 | | |
105 | 112 | | |
106 | 113 | | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
107 | 122 | | |
108 | 123 | | |
109 | 124 | | |
| |||
0 commit comments