No Description

FIRVerifyPasswordResponse.h 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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 "FIRAuthRPCResponse.h"
  18. NS_ASSUME_NONNULL_BEGIN
  19. /** @class FIRVerifyPasswordResponse
  20. @brief Represents the response from the verifyPassword endpoint.
  21. @remarks Possible error codes:
  22. - FIRAuthInternalErrorCodeUserDisabled
  23. - FIRAuthInternalErrorCodeEmailNotFound
  24. @see https://developers.google.com/identity/toolkit/web/reference/relyingparty/verifyPassword
  25. */
  26. @interface FIRVerifyPasswordResponse : NSObject <FIRAuthRPCResponse>
  27. /** @property localID
  28. @brief The RP local ID if it's already been mapped to the IdP account identified by the
  29. federated ID.
  30. */
  31. @property(nonatomic, strong, readonly, nullable) NSString *localID;
  32. /** @property email
  33. @brief The email returned by the IdP. NOTE: The federated login user may not own the email.
  34. */
  35. @property(nonatomic, strong, readonly, nullable) NSString *email;
  36. /** @property displayName
  37. @brief The display name of the user.
  38. */
  39. @property(nonatomic, strong, readonly, nullable) NSString *displayName;
  40. /** @property IDToken
  41. @brief Either an authorization code suitable for performing an STS token exchange, or the
  42. access token from Secure Token Service, depending on whether @c returnSecureToken is set
  43. on the request.
  44. */
  45. @property(nonatomic, strong, readonly, nullable) NSString *IDToken;
  46. /** @property approximateExpirationDate
  47. @brief The approximate expiration date of the access token.
  48. */
  49. @property(nonatomic, copy, readonly, nullable) NSDate *approximateExpirationDate;
  50. /** @property refreshToken
  51. @brief The refresh token from Secure Token Service.
  52. */
  53. @property(nonatomic, strong, readonly, nullable) NSString *refreshToken;
  54. /** @property photoURL
  55. @brief The URI of the public accessible profile picture.
  56. */
  57. @property(nonatomic, strong, readonly, nullable) NSURL *photoURL;
  58. @end
  59. NS_ASSUME_NONNULL_END