@@ -113,6 +113,7 @@ fireauth.AuthError.ERROR_CODE_PREFIX = 'auth/';
113
113
* @enum {string}
114
114
*/
115
115
fireauth . authenum . Error = {
116
+ ADMIN_ONLY_OPERATION : 'admin-restricted-operation' ,
116
117
ARGUMENT_ERROR : 'argument-error' ,
117
118
APP_NOT_AUTHORIZED : 'app-not-authorized' ,
118
119
APP_NOT_INSTALLED : 'app-not-installed' ,
@@ -198,6 +199,8 @@ fireauth.authenum.Error = {
198
199
* @private {!Object<string, string>}
199
200
*/
200
201
fireauth . AuthError . MESSAGES_ = { } ;
202
+ fireauth . AuthError . MESSAGES_ [ fireauth . authenum . Error . ADMIN_ONLY_OPERATION ] =
203
+ 'This operation is restricted to administrators only.' ;
201
204
fireauth . AuthError . MESSAGES_ [ fireauth . authenum . Error . ARGUMENT_ERROR ] = '' ;
202
205
fireauth . AuthError . MESSAGES_ [ fireauth . authenum . Error . APP_NOT_AUTHORIZED ] =
203
206
'This app, identified by the domain where it\'s hosted, is not ' +
@@ -277,9 +280,6 @@ fireauth.AuthError.MESSAGES_[fireauth.authenum.Error.INVALID_CERT_HASH] =
277
280
'The SHA-1 certificate hash provided is invalid.' ;
278
281
fireauth . AuthError . MESSAGES_ [ fireauth . authenum . Error . INVALID_IDP_RESPONSE ] =
279
282
'The supplied auth credential is malformed or has expired.' ;
280
- fireauth . AuthError . MESSAGES_ [ fireauth . authenum . Error . INVALID_PERSISTENCE ] =
281
- 'The specified persistence type is invalid. It can only be local, ' +
282
- 'session or none.' ;
283
283
fireauth . AuthError . MESSAGES_ [ fireauth . authenum . Error . INVALID_MESSAGE_PAYLOAD ] =
284
284
'The email template corresponding to this action contains invalid charac' +
285
285
'ters in its message. Please fix by going to the Auth email templates se' +
@@ -298,6 +298,9 @@ fireauth.AuthError.MESSAGES_[fireauth.authenum.Error.INVALID_OOB_CODE] =
298
298
'expired, or has already been used.' ;
299
299
fireauth . AuthError . MESSAGES_ [ fireauth . authenum . Error . INVALID_PASSWORD ] =
300
300
'The password is invalid or the user does not have a password.' ;
301
+ fireauth . AuthError . MESSAGES_ [ fireauth . authenum . Error . INVALID_PERSISTENCE ] =
302
+ 'The specified persistence type is invalid. It can only be local, ' +
303
+ 'session or none.' ;
301
304
fireauth . AuthError . MESSAGES_ [ fireauth . authenum . Error . INVALID_PHONE_NUMBER ] =
302
305
'The format of the phone number provided is incorrect. Please enter the ' +
303
306
'phone number in a format that can be parsed into E.164 format. E.164 ' +
0 commit comments