No Description

FIRAuthInternalErrors.h 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468
  1. /*
  2. * Copyright 2017 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #import <Foundation/Foundation.h>
  17. #import "FIRAuthErrors.h"
  18. NS_ASSUME_NONNULL_BEGIN
  19. /** @var FIRAuthPublicErrorCodeFlag
  20. @brief Bitmask value indicating the error represents a public error code when this bit is
  21. zeroed. Error codes which don't contain this flag will be wrapped in an @c NSError whose
  22. code is @c FIRAuthErrorCodeInternalError.
  23. */
  24. static const NSInteger FIRAuthPublicErrorCodeFlag = 1 << 20;
  25. /** @var FIRAuthInternalErrorDomain
  26. @brief The Firebase Auth error domain for internal errors.
  27. */
  28. extern NSString *const FIRAuthInternalErrorDomain;
  29. /** @var FIRAuthErrorUserInfoDeserializedResponseKey
  30. @brief Errors with the code @c FIRAuthErrorCodeUnexpectedResponseError,
  31. @c FIRAuthErrorCodeUnexpectedErrorResponseError, and
  32. @c FIRAuthInternalErrorCodeRPCResponseDecodingError may contain an @c NSError.userInfo
  33. dictionary which contains this key. The value associated with this key is an object of
  34. unspecified contents containing the deserialized server response.
  35. */
  36. extern NSString *const FIRAuthErrorUserInfoDeserializedResponseKey;
  37. /** @var FIRAuthErrorUserInfoDataKey
  38. @brief Errors with the code @c FIRAuthErrorCodeUnexpectedResponseError or
  39. @c FIRAuthErrorCodeUnexpectedErrorResponseError may contain an @c NSError.userInfo
  40. dictionary which contains this key. The value associated with this key is an @c NSString
  41. which represents the response from a server to an RPC which could not be deserialized.
  42. */
  43. extern NSString *const FIRAuthErrorUserInfoDataKey;
  44. /** @var FIRAuthInternalErrorCode
  45. @brief Error codes used internally by Firebase Auth.
  46. @remarks All errors are generated using an internal error code. These errors are automatically
  47. converted to the appropriate public version of the @c NSError by the methods in
  48. @c FIRAuthErrorUtils
  49. */
  50. typedef NS_ENUM(NSInteger, FIRAuthInternalErrorCode) {
  51. /** @var FIRAuthInternalErrorCodeNetworkError
  52. @brief Indicates a network error occurred (such as a timeout, interrupted connection, or
  53. unreachable host.)
  54. @remarks These types of errors are often recoverable with a retry.
  55. See the @c NSUnderlyingError value in the @c NSError.userInfo dictionary for details about
  56. the network error which occurred.
  57. */
  58. FIRAuthInternalErrorCodeNetworkError = FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeNetworkError,
  59. /** @var FIRAuthInternalErrorCodeEmailAlreadyInUse
  60. @brief The email used to attempt a sign-up already exists.
  61. */
  62. FIRAuthInternalErrorCodeEmailAlreadyInUse =
  63. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeEmailAlreadyInUse,
  64. /** @var FIRAuthInternalErrorCodeUserDisabled
  65. @brief Indicates the user's account is disabled on the server side.
  66. */
  67. FIRAuthInternalErrorCodeUserDisabled = FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeUserDisabled,
  68. /** @var FIRAuthInternalErrorCodeWrongPassword
  69. @brief Indicates the user attempted sign in with a wrong password
  70. */
  71. FIRAuthInternalErrorCodeWrongPassword =
  72. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeWrongPassword,
  73. /** @var FIRAuthInternalErrorCodeKeychainError
  74. @brief Indicates an error occurred accessing the keychain.
  75. @remarks The @c NSLocalizedFailureReasonErrorKey field in the @c NSError.userInfo dictionary
  76. will contain more information about the error encountered.
  77. */
  78. FIRAuthInternalErrorCodeKeychainError =
  79. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeKeychainError,
  80. /** @var FIRAuthInternalErrorCodeInternalError
  81. @brief An internal error occurred.
  82. @remarks This value is here for consistency. It's also used to make the implementation of
  83. wrapping internal errors simpler.
  84. */
  85. FIRAuthInternalErrorCodeInternalError =
  86. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInternalError,
  87. /** @var FIRAuthInternalErrorCodeTooManyRequests
  88. @brief Indicates that too many requests were made to a server method.
  89. */
  90. FIRAuthInternalErrorCodeTooManyRequests =
  91. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeTooManyRequests,
  92. /** @var FIRAuthInternalErrorCodeInvalidCustomToken
  93. @brief Indicates a validation error with the custom token.
  94. */
  95. FIRAuthInternalErrorCodeInvalidCustomToken =
  96. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidCustomToken,
  97. /** @var FIRAuthInternalErrorCodeCredentialMismatch
  98. @brief Indicates the service account and the API key belong to different projects.
  99. */
  100. FIRAuthInternalErrorCodeCustomTokenMismatch =
  101. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeCustomTokenMismatch,
  102. /** @var FIRAuthInternalErrorCodeInvalidCredential
  103. @brief Indicates the IDP token or requestUri is invalid.
  104. */
  105. FIRAuthInternalErrorCodeInvalidCredential =
  106. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidCredential,
  107. /** @var FIRAuthInternalErrorCodeRequiresRecentLogin
  108. @brief Indicates the user has attemped to change email or password more than 5 minutes after
  109. signing in.
  110. */
  111. FIRAuthInternalErrorCodeRequiresRecentLogin =
  112. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeRequiresRecentLogin,
  113. /** @var FIRAuthInternalErrorCodeInvalidUserToken
  114. @brief Indicates user's saved auth credential is invalid, the user needs to sign in again.
  115. */
  116. FIRAuthInternalErrorCodeInvalidUserToken =
  117. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidUserToken,
  118. /** @var FIRAuthInternalErrorCodeInvalidEmail
  119. @brief Indicates the email identifier is invalid.
  120. */
  121. FIRAuthInternalErrorCodeInvalidEmail =
  122. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidEmail,
  123. /** @var FIRAuthInternalErrorCodeAccountExistsWithDifferentCredential
  124. @brief Indicates account linking is needed.
  125. */
  126. FIRAuthInternalErrorCodeAccountExistsWithDifferentCredential =
  127. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeAccountExistsWithDifferentCredential,
  128. /** @var FIRAuthInternalErrorCodeProviderAlreadyLinked
  129. @brief Indicates an attempt to link a provider to which we are already linked.
  130. */
  131. FIRAuthInternalErrorCodeProviderAlreadyLinked =
  132. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeProviderAlreadyLinked,
  133. /** @var FIRAuthInternalErrorCodeNoSuchProvider
  134. @brief Indicates an attempt to unlink a provider that is not is not linked.
  135. */
  136. FIRAuthInternalErrorCodeNoSuchProvider =
  137. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeNoSuchProvider,
  138. /** @var FIRAuthInternalErrorCodeUserTokenExpired
  139. @brief Indicates the token issue time is older than account's valid_since time.
  140. */
  141. FIRAuthInternalErrorCodeUserTokenExpired =
  142. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeUserTokenExpired,
  143. /** @var FIRAuthInternalErrorCodeUserNotFound
  144. @brief Indicates the user account was been found.
  145. */
  146. FIRAuthInternalErrorCodeUserNotFound =
  147. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeUserNotFound,
  148. /** @var FIRAuthInternalErrorCodeInvalidAPIKey
  149. @brief Indicates an invalid API Key was supplied in the request.
  150. */
  151. FIRAuthInternalErrorCodeInvalidAPIKey =
  152. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidAPIKey,
  153. /** @var FIRAuthInternalErrorCodeOperationNotAllowed
  154. @brief Indicates that admin disabled sign-in with the specified IDP.
  155. */
  156. FIRAuthInternalErrorCodeOperationNotAllowed =
  157. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeOperationNotAllowed,
  158. /** @var FIRAuthInternalErrorCodeUserMismatch
  159. @brief Indicates that user attempted to reauthenticate with a user other than the current
  160. user.
  161. */
  162. FIRAuthInternalErrorCodeUserMismatch =
  163. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeUserMismatch,
  164. /** @var FIRAuthInternalErrorCodeCredentialAlreadyInUse
  165. @brief Indicates an attempt to link with a credential that has already been linked with a
  166. different Firebase account.
  167. */
  168. FIRAuthInternalErrorCodeCredentialAlreadyInUse =
  169. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeCredentialAlreadyInUse,
  170. /** @var FIRAuthInternalErrorCodeWeakPassword
  171. @brief Indicates an attempt to set a password that is considered too weak.
  172. */
  173. FIRAuthInternalErrorCodeWeakPassword =
  174. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeWeakPassword,
  175. /** @var FIRAuthInternalErrorCodeAppNotAuthorized
  176. @brief Indicates the App is not authorized to use Firebase Authentication with the
  177. provided API Key.
  178. */
  179. FIRAuthInternalErrorCodeAppNotAuthorized =
  180. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeAppNotAuthorized,
  181. /** @var FIRAuthInternalErrorCodeExpiredActionCode
  182. @brief Indicates the OOB code is expired.
  183. */
  184. FIRAuthInternalErrorCodeExpiredActionCode =
  185. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeExpiredActionCode,
  186. /** @var FIRAuthInternalErrorCodeInvalidActionCode
  187. @brief Indicates the OOB code is invalid.
  188. */
  189. FIRAuthInternalErrorCodeInvalidActionCode =
  190. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidActionCode,
  191. /** Indicates that there are invalid parameters in the payload during a "send password reset email
  192. * " attempt.
  193. */
  194. FIRAuthInternalErrorCodeInvalidMessagePayload =
  195. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidMessagePayload,
  196. /** Indicates that the sender email is invalid during a "send password reset email" attempt.
  197. */
  198. FIRAuthInternalErrorCodeInvalidSender =
  199. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidSender,
  200. /** Indicates that the recipient email is invalid.
  201. */
  202. FIRAuthInternalErrorCodeInvalidRecipientEmail =
  203. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidRecipientEmail,
  204. /** Indicates that the iOS bundle ID is missing when a iOS App Store ID is provided.
  205. */
  206. FIRAuthinternalErrorCodeMissingIosBundleID =
  207. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeMissingIosBundleID,
  208. /** Indicates that the android package name is missing when the @c androidInstallApp flag is set
  209. to true.
  210. */
  211. FIRAuthInternalErrorCodeMissingAndroidPackageName =
  212. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeMissingAndroidPackageName,
  213. /** Indicates that the domain specified in the continue URL is not whitelisted in the Firebase
  214. console.
  215. */
  216. FIRAuthInternalErrorCodeUnauthorizedDomain =
  217. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeUnauthorizedDomain,
  218. /** Indicates that the domain specified in the continue URI is not valid.
  219. */
  220. FIRAuthInternalErrorCodeInvalidContinueURI =
  221. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidContinueURI,
  222. /** Indicates that a continue URI was not provided in a request to the backend which requires
  223. one.
  224. */
  225. FIRAuthInternalErrorCodeMissingContinueURI =
  226. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeMissingContinueURI,
  227. /** Indicates that an email address was expected but one was not provided.
  228. */
  229. FIRAuthInternalErrorCodeMissingEmail =
  230. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeMissingEmail,
  231. /** Indicates that a phone number was not provided in a call to @c verifyPhoneNumber:completion:.
  232. */
  233. FIRAuthInternalErrorCodeMissingPhoneNumber =
  234. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeMissingPhoneNumber,
  235. /** Indicates that an invalid phone number was provided in a call to @c
  236. verifyPhoneNumber:completion:.
  237. */
  238. FIRAuthInternalErrorCodeInvalidPhoneNumber =
  239. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidPhoneNumber,
  240. /** Indicates that the phone auth credential was created with an empty verification code.
  241. */
  242. FIRAuthInternalErrorCodeMissingVerificationCode =
  243. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeMissingVerificationCode,
  244. /** Indicates that an invalid verification code was used in the verifyPhoneNumber request.
  245. */
  246. FIRAuthInternalErrorCodeInvalidVerificationCode =
  247. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidVerificationCode,
  248. /** Indicates that the phone auth credential was created with an empty verification ID.
  249. */
  250. FIRAuthInternalErrorCodeMissingVerificationID =
  251. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeMissingVerificationID,
  252. /** Indicates that the APNS device token is missing in the verifyClient request.
  253. */
  254. FIRAuthInternalErrorCodeMissingAppCredential =
  255. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeMissingAppCredential,
  256. /** Indicates that an invalid APNS device token was used in the verifyClient request.
  257. */
  258. FIRAuthInternalErrorCodeInvalidAppCredential =
  259. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidAppCredential,
  260. /** Indicates that the reCAPTCHA token is not valid.
  261. */
  262. FIRAuthInternalErrorCodeCaptchaCheckFailed =
  263. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeCaptchaCheckFailed,
  264. /** Indicates that an invalid verification ID was used in the verifyPhoneNumber request.
  265. */
  266. FIRAuthInternalErrorCodeInvalidVerificationID =
  267. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidVerificationID,
  268. /** Indicates that the quota of SMS messages for a given project has been exceeded.
  269. */
  270. FIRAuthInternalErrorCodeQuotaExceeded =
  271. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeQuotaExceeded,
  272. /** Indicates that an attempt was made to present a new web context while one was already being
  273. presented.
  274. */
  275. FIRAuthInternalErrorCodeWebContextAlreadyPresented =
  276. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeWebContextAlreadyPresented,
  277. /** Indicates that the URL presentation was cancelled prematurely by the user.
  278. */
  279. FIRAuthInternalErrorCodeWebContextCancelled =
  280. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeWebContextCancelled,
  281. /** Indicates a general failure during the app verification flow.
  282. */
  283. FIRAuthInternalErrorCodeAppVerificationUserInteractionFailure =
  284. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeAppVerificationUserInteractionFailure,
  285. /** Indicates that the clientID used to invoke a web flow is invalid.
  286. */
  287. FIRAuthInternalErrorCodeInvalidClientID =
  288. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidClientID,
  289. /** Indicates that a network request within a SFSafariViewController or UIWebview failed.
  290. */
  291. FIRAuthInternalErrorCodeWebNetworkRequestFailed =
  292. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeWebNetworkRequestFailed,
  293. /** Indicates that an internal error occurred within a SFSafariViewController or UIWebview.
  294. */
  295. FIRAuthInternalErrorCodeWebInternalError =
  296. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeWebInternalError,
  297. /** Indicates that an internal error occured within a SFSafariViewController or UIWebview.
  298. */
  299. FIRAuthInternalErrorCodeWebSignInUserInteractionFailure =
  300. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeWebSignInUserInteractionFailure,
  301. // The enum values between 17046 and 17051 are reserved and should NOT be used for new error
  302. // codes.
  303. /** Indicates that the SMS code has expired
  304. */
  305. FIRAuthInternalErrorCodeSessionExpired =
  306. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeSessionExpired,
  307. FIRAuthInternalErrorCodeMissingAppToken =
  308. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeMissingAppToken,
  309. FIRAuthInternalErrorCodeNotificationNotForwarded =
  310. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeNotificationNotForwarded,
  311. FIRAuthInternalErrorCodeAppNotVerified =
  312. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeAppNotVerified,
  313. /** Indicates that the Game Center local player was not authenticated.
  314. */
  315. FIRAuthInternalErrorCodeLocalPlayerNotAuthenticated =
  316. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeLocalPlayerNotAuthenticated,
  317. /** Indicates that the Game Center local player was not authenticated.
  318. */
  319. FIRAuthInternalErrorCodeGameKitNotLinked =
  320. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeGameKitNotLinked,
  321. /** Indicates that a non-null user was expected as an argmument to the operation but a null
  322. user was provided.
  323. */
  324. FIRAuthInternalErrorCodeNullUser =
  325. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeNullUser,
  326. /** Indicates that the Firebase Dynamic Link domain used is either not configured or is unauthorized
  327. for the current project.
  328. */
  329. FIRAuthInternalErrorCodeInvalidDynamicLinkDomain =
  330. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeInvalidDynamicLinkDomain,
  331. FIRAuthInternalErrorCodeMalformedJWT =
  332. FIRAuthPublicErrorCodeFlag | FIRAuthErrorCodeMalformedJWT,
  333. /** @var FIRAuthInternalErrorCodeRPCRequestEncodingError
  334. @brief Indicates an error encoding the RPC request.
  335. @remarks This is typically due to some sort of unexpected input value.
  336. See the @c NSUnderlyingError value in the @c NSError.userInfo dictionary for details.
  337. */
  338. FIRAuthInternalErrorCodeRPCRequestEncodingError = 1,
  339. /** @var FIRAuthInternalErrorCodeJSONSerializationError
  340. @brief Indicates an error serializing an RPC request.
  341. @remarks This is typically due to some sort of unexpected input value.
  342. If an @c NSJSONSerialization.isValidJSONObject: check fails, the error will contain no
  343. @c NSUnderlyingError key in the @c NSError.userInfo dictionary. If an error was
  344. encountered calling @c NSJSONSerialization.dataWithJSONObject:options:error:, the
  345. resulting error will be associated with the @c NSUnderlyingError key in the
  346. @c NSError.userInfo dictionary.
  347. */
  348. FIRAuthInternalErrorCodeJSONSerializationError = 2,
  349. /** @var FIRAuthInternalErrorCodeUnexpectedErrorResponse
  350. @brief Indicates an HTTP error occurred and the data returned either couldn't be deserialized
  351. or couldn't be decoded.
  352. @remarks See the @c NSUnderlyingError value in the @c NSError.userInfo dictionary for details
  353. about the HTTP error which occurred.
  354. If the response could be deserialized as JSON then the @c NSError.userInfo dictionary will
  355. contain a value for the key @c FIRAuthErrorUserInfoDeserializedResponseKey which is the
  356. deserialized response value.
  357. If the response could not be deserialized as JSON then the @c NSError.userInfo dictionary
  358. will contain values for the @c NSUnderlyingErrorKey and @c FIRAuthErrorUserInfoDataKey
  359. keys.
  360. */
  361. FIRAuthInternalErrorCodeUnexpectedErrorResponse = 3,
  362. /** @var FIRAuthInternalErrorCodeUnexpectedResponse
  363. @brief Indicates the HTTP response indicated the request was a successes, but the response
  364. contains something other than a JSON-encoded dictionary, or the data type of the response
  365. indicated it is different from the type of response we expected.
  366. @remarks See the @c NSUnderlyingError value in the @c NSError.userInfo dictionary.
  367. If this key is present in the dictionary, it may contain an error from
  368. @c NSJSONSerialization error (indicating the response received was of the wrong data
  369. type).
  370. See the @c FIRAuthErrorUserInfoDeserializedResponseKey value in the @c NSError.userInfo
  371. dictionary. If the response could be deserialized, it's deserialized representation will
  372. be associated with this key. If the @c NSUnderlyingError value in the @c NSError.userInfo
  373. dictionary is @c nil, this indicates the JSON didn't represent a dictionary.
  374. */
  375. FIRAuthInternalErrorCodeUnexpectedResponse = 4,
  376. /** @var FIRAuthInternalErrorCodeRPCResponseDecodingError
  377. @brief Indicates an error decoding the RPC response.
  378. This is typically due to some sort of unexpected response value from the server.
  379. @remarks See the @c NSUnderlyingError value in the @c NSError.userInfo dictionary for details.
  380. See the @c FIRErrorUserInfoDecodedResponseKey value in the @c NSError.userInfo dictionary.
  381. The deserialized representation of the response will be associated with this key.
  382. */
  383. FIRAuthInternalErrorCodeRPCResponseDecodingError = 5,
  384. };
  385. NS_ASSUME_NONNULL_END