@@ -112,15 +112,15 @@ const ERRORS: ErrorMap<AuthErrorCode> = {
112
112
'This operation is restricted to administrators only.' ,
113
113
[ AuthErrorCode . ARGUMENT_ERROR ] : '' ,
114
114
[ AuthErrorCode . APP_NOT_AUTHORIZED ] :
115
- "This app]: identified by the domain where it's hosted]: is not " +
115
+ "This app, identified by the domain where it's hosted, is not " +
116
116
'authorized to use Firebase Authentication with the provided API key. ' +
117
117
'Review your key configuration in the Google API console.' ,
118
118
[ AuthErrorCode . APP_NOT_INSTALLED ] :
119
119
'The requested mobile application corresponding to the identifier (' +
120
120
'Android package name or iOS bundle ID) provided is not installed on ' +
121
121
'this device.' ,
122
122
[ AuthErrorCode . CAPTCHA_CHECK_FAILED ] :
123
- 'The reCAPTCHA response token provided is either invalid]: expired]: ' +
123
+ 'The reCAPTCHA response token provided is either invalid, expired, ' +
124
124
'already used or the domain associated with it does not match the list ' +
125
125
'of whitelisted domains.' ,
126
126
[ AuthErrorCode . CODE_EXPIRED ] :
@@ -136,15 +136,13 @@ const ERRORS: ErrorMap<AuthErrorCode> = {
136
136
'This operation is sensitive and requires recent authentication. Log in ' +
137
137
'again before retrying this request.' ,
138
138
[ AuthErrorCode . DYNAMIC_LINK_NOT_ACTIVATED ] :
139
- 'Please activate ' +
140
- 'Dynamic Links in the Firebase Console and agree to the terms and ' +
139
+ 'Please activate Dynamic Links in the Firebase Console and agree to the terms and ' +
141
140
'conditions.' ,
142
141
[ AuthErrorCode . EMAIL_EXISTS ] :
143
142
'The email address is already in use by another account.' ,
144
- [ AuthErrorCode . EXPIRED_OOB_CODE ] : 'The action code has expired. ' ,
143
+ [ AuthErrorCode . EXPIRED_OOB_CODE ] : 'The action code has expired.' ,
145
144
[ AuthErrorCode . EXPIRED_POPUP_REQUEST ] :
146
- 'This operation has been cancelled due to another conflicting popup ' +
147
- 'being opened.' ,
145
+ 'This operation has been cancelled due to another conflicting popup being opened.' ,
148
146
[ AuthErrorCode . INTERNAL_ERROR ] : 'An internal AuthError has occurred.' ,
149
147
[ AuthErrorCode . INVALID_APP_CREDENTIAL ] :
150
148
'The phone verification request contains an invalid application verifier.' +
@@ -153,7 +151,7 @@ const ERRORS: ErrorMap<AuthErrorCode> = {
153
151
'The mobile app identifier is not registed for the current project.' ,
154
152
[ AuthErrorCode . INVALID_AUTH ] :
155
153
"This user's credential isn't valid for this project. This can happen " +
156
- "if the user's token has been tampered with]: or if the user isn't for " +
154
+ "if the user's token has been tampered with, or if the user isn't for " +
157
155
'the project associated with this API key.' ,
158
156
[ AuthErrorCode . INVALID_AUTH_EVENT ] : 'An internal AuthError has occurred.' ,
159
157
[ AuthErrorCode . INVALID_CODE ] :
@@ -163,28 +161,24 @@ const ERRORS: ErrorMap<AuthErrorCode> = {
163
161
[ AuthErrorCode . INVALID_CONTINUE_URI ] :
164
162
'The continue URL provided in the request is invalid.' ,
165
163
[ AuthErrorCode . INVALID_CORDOVA_CONFIGURATION ] :
166
- 'The following' +
167
- ' Cordova plugins must be installed to enable OAuth sign-in= ' +
168
- 'cordova-plugin-buildinfo]: cordova-universal-links-plugin]: ' +
169
- 'cordova-plugin-browsertab]: cordova-plugin-inappbrowser and ' +
164
+ 'The following Cordova plugins must be installed to enable OAuth sign-in: ' +
165
+ 'cordova-plugin-buildinfo, cordova-universal-links-plugin, ' +
166
+ 'cordova-plugin-browsertab, cordova-plugin-inappbrowser and ' +
170
167
'cordova-plugin-customurlscheme.' ,
171
168
[ AuthErrorCode . INVALID_CUSTOM_TOKEN ] :
172
169
'The custom token format is incorrect. Please check the documentation.' ,
173
170
[ AuthErrorCode . INVALID_DYNAMIC_LINK_DOMAIN ] :
174
- 'The provided ' +
175
- 'dynamic link domain is not configured or authorized for the current ' +
176
- 'project.' ,
171
+ 'The provided dynamic link domain is not configured or authorized for the current project.' ,
177
172
[ AuthErrorCode . INVALID_EMAIL ] : 'The email address is badly formatted.' ,
178
173
[ AuthErrorCode . INVALID_API_KEY ] :
179
- 'Your API key is invalid]: please check you have copied it correctly.' ,
174
+ 'Your API key is invalid, please check you have copied it correctly.' ,
180
175
[ AuthErrorCode . INVALID_CERT_HASH ] :
181
176
'The SHA-1 certificate hash provided is invalid.' ,
182
177
[ AuthErrorCode . INVALID_IDP_RESPONSE ] :
183
178
'The supplied auth credential is malformed or has expired.' ,
184
179
[ AuthErrorCode . INVALID_MESSAGE_PAYLOAD ] :
185
- 'The email template corresponding to this action contains invalid charac' +
186
- 'ters in its message. Please fix by going to the Auth email templates se' +
187
- 'ction in the Firebase Console.' ,
180
+ 'The email template corresponding to this action contains invalid characters in its message. ' +
181
+ 'Please fix by going to the Auth email templates section in the Firebase Console.' ,
188
182
[ AuthErrorCode . INVALID_OAUTH_PROVIDER ] :
189
183
'EmailAuthProvider is not supported for this operation. This operation ' +
190
184
'only supports OAuth providers.' ,
@@ -195,43 +189,38 @@ const ERRORS: ErrorMap<AuthErrorCode> = {
195
189
'This domain is not authorized for OAuth operations for your Firebase ' +
196
190
'project. Edit the list of authorized domains from the Firebase console.' ,
197
191
[ AuthErrorCode . INVALID_OOB_CODE ] :
198
- 'The action code is invalid. This can happen if the code is malformed]: ' +
199
- 'expired]: or has already been used.' ,
192
+ 'The action code is invalid. This can happen if the code is malformed, ' +
193
+ 'expired, or has already been used.' ,
200
194
[ AuthErrorCode . INVALID_PASSWORD ] :
201
195
'The password is invalid or the user does not have a password.' ,
202
196
[ AuthErrorCode . INVALID_PERSISTENCE ] :
203
- 'The specified persistence type is invalid. It can only be local]: ' +
204
- 'session or none.' ,
197
+ 'The specified persistence type is invalid. It can only be local, session or none.' ,
205
198
[ AuthErrorCode . INVALID_PHONE_NUMBER ] :
206
199
'The format of the phone number provided is incorrect. Please enter the ' +
207
200
'phone number in a format that can be parsed into E.164 format. E.164 ' +
208
- 'phone numbers are written in the format [+,[country code,[subscriber ' +
209
- 'number including area code, .' ,
201
+ 'phone numbers are written in the format [+] ,[country code] ,[subscriber ' +
202
+ 'number including area code] .' ,
210
203
[ AuthErrorCode . INVALID_PROVIDER_ID ] : 'The specified provider ID is invalid.' ,
211
204
[ AuthErrorCode . INVALID_RECIPIENT_EMAIL ] :
212
205
'The email corresponding to this action failed to send as the provided ' +
213
206
'recipient email address is invalid.' ,
214
207
[ AuthErrorCode . INVALID_SENDER ] :
215
- 'The email template corresponding to this action contains an invalid sen' +
216
- 'der email or name. Please fix by going to the Auth email templates sect' +
217
- 'ion in the Firebase Console.' ,
208
+ 'The email template corresponding to this action contains an invalid sender email or name. ' +
209
+ 'Please fix by going to the Auth email templates section in the Firebase Console.' ,
218
210
[ AuthErrorCode . INVALID_SESSION_INFO ] :
219
211
'The verification ID used to create the phone auth credential is invalid.' ,
220
212
[ AuthErrorCode . INVALID_TENANT_ID ] :
221
213
"The Auth instance's tenant ID is invalid." ,
222
214
[ AuthErrorCode . MISSING_ANDROID_PACKAGE_NAME ] :
223
- 'An Android ' +
224
- 'Package Name must be provided if the Android App is required to be ' +
225
- 'installed.' ,
215
+ 'An Android Package Name must be provided if the Android App is required to be installed.' ,
226
216
[ AuthErrorCode . MISSING_AUTH_DOMAIN ] :
227
- 'Be sure to include authDomain when calling firebase.initializeApp()]: ' +
217
+ 'Be sure to include authDomain when calling firebase.initializeApp(), ' +
228
218
'by following the instructions in the Firebase console.' ,
229
219
[ AuthErrorCode . MISSING_APP_CREDENTIAL ] :
230
220
'The phone verification request is missing an application verifier ' +
231
221
'assertion. A reCAPTCHA response token needs to be provided.' ,
232
222
[ AuthErrorCode . MISSING_CODE ] :
233
- 'The phone auth credential was created with an empty SMS verification ' +
234
- 'code.' ,
223
+ 'The phone auth credential was created with an empty SMS verification code.' ,
235
224
[ AuthErrorCode . MISSING_CONTINUE_URI ] :
236
225
'A continue URL must be provided in the request.' ,
237
226
[ AuthErrorCode . MISSING_IFRAME_START ] : 'An internal AuthError has occurred.' ,
@@ -242,7 +231,7 @@ const ERRORS: ErrorMap<AuthErrorCode> = {
242
231
'SHA-256 hash of the provided raw nonce does not match the hashed nonce ' +
243
232
'in the ID token payload.' ,
244
233
[ AuthErrorCode . MISSING_PHONE_NUMBER ] :
245
- 'To send verification codes]: provide a phone number for the recipient.' ,
234
+ 'To send verification codes, provide a phone number for the recipient.' ,
246
235
[ AuthErrorCode . MISSING_SESSION_INFO ] :
247
236
'The phone auth credential was created with an empty verification ID.' ,
248
237
[ AuthErrorCode . MODULE_DESTROYED ] :
@@ -254,8 +243,7 @@ const ERRORS: ErrorMap<AuthErrorCode> = {
254
243
'sign-in credentials. Sign in using a provider associated with this ' +
255
244
'email address.' ,
256
245
[ AuthErrorCode . NETWORK_REQUEST_FAILED ] :
257
- 'A network AuthError (such as timeout]: interrupted connection or ' +
258
- 'unreachable host) has occurred.' ,
246
+ 'A network AuthError (such as timeout, interrupted connection or unreachable host) has occurred.' ,
259
247
[ AuthErrorCode . NO_AUTH_EVENT ] : 'An internal AuthError has occurred.' ,
260
248
[ AuthErrorCode . NO_SUCH_PROVIDER ] :
261
249
'User was not linked to an account with the given provider.' ,
@@ -264,15 +252,14 @@ const ERRORS: ErrorMap<AuthErrorCode> = {
264
252
'requires a non-null user object.' ,
265
253
[ AuthErrorCode . OPERATION_NOT_ALLOWED ] :
266
254
'The given sign-in provider is disabled for this Firebase project. ' +
267
- 'Enable it in the Firebase console]: under the sign-in method tab of the ' +
255
+ 'Enable it in the Firebase console, under the sign-in method tab of the ' +
268
256
'Auth section.' ,
269
257
[ AuthErrorCode . OPERATION_NOT_SUPPORTED ] :
270
258
'This operation is not supported in the environment this application is ' +
271
- 'running on. "location.protocol" must be http]: https or chrome-extension' +
259
+ 'running on. "location.protocol" must be http, https or chrome-extension' +
272
260
' and web storage must be enabled.' ,
273
261
[ AuthErrorCode . POPUP_BLOCKED ] :
274
- 'Unable to establish a connection with the popup. It may have been ' +
275
- 'blocked by the browser.' ,
262
+ 'Unable to establish a connection with the popup. It may have been blocked by the browser.' ,
276
263
[ AuthErrorCode . POPUP_CLOSED_BY_USER ] :
277
264
'The popup has been closed by the user before finalizing the operation.' ,
278
265
[ AuthErrorCode . PROVIDER_ALREADY_LINKED ] :
@@ -308,14 +295,12 @@ const ERRORS: ErrorMap<AuthErrorCode> = {
308
295
[ AuthErrorCode . USER_DISABLED ] :
309
296
'The user account has been disabled by an administrator.' ,
310
297
[ AuthErrorCode . USER_MISMATCH ] :
311
- 'The supplied credentials do not correspond to the previously signed in ' +
312
- 'user.' ,
298
+ 'The supplied credentials do not correspond to the previously signed in user.' ,
313
299
[ AuthErrorCode . USER_SIGNED_OUT ] : '' ,
314
300
[ AuthErrorCode . WEAK_PASSWORD ] :
315
301
'The password must be 6 characters long or more.' ,
316
302
[ AuthErrorCode . WEB_STORAGE_UNSUPPORTED ] :
317
- 'This browser is not supported or 3rd party cookies and data may be ' +
318
- 'disabled.'
303
+ 'This browser is not supported or 3rd party cookies and data may be disabled.'
319
304
} ;
320
305
321
306
type AuthErrorParams = {
0 commit comments