No Description

FIRAuthDataResult.h 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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. @class FIRAdditionalUserInfo;
  18. @class FIRAuthCredential;
  19. @class FIRUser;
  20. NS_ASSUME_NONNULL_BEGIN
  21. /** @class FIRAuthDataResult
  22. @brief Helper object that contains the result of a successful sign-in, link and reauthenticate
  23. action. It contains references to a FIRUser instance and a FIRAdditionalUserInfo instance.
  24. */
  25. NS_SWIFT_NAME(AuthDataResult)
  26. @interface FIRAuthDataResult : NSObject
  27. /** @fn init
  28. @brief This class should not be initialized manually. `FIRAuthDataResult` instance is
  29. returned as part of `FIRAuthDataResultCallback`.
  30. */
  31. - (instancetype)init NS_UNAVAILABLE;
  32. /** @property user
  33. @brief The signed in user.
  34. */
  35. @property(nonatomic, readonly) FIRUser *user;
  36. /** @property additionalUserInfo
  37. @brief If available contains the additional IdP specific information about signed in user.
  38. */
  39. @property(nonatomic, readonly, nullable) FIRAdditionalUserInfo *additionalUserInfo;
  40. /** @property credential
  41. @brief This property will be non-nil after a successful headful-lite sign-in via
  42. signInWithProvider:UIDelegate:. May be used to obtain the accessToken and/or IDToken
  43. pertaining to a recently signed-in user.
  44. */
  45. @property(nonatomic, readonly, nullable) FIRAuthCredential *credential;
  46. @end
  47. NS_ASSUME_NONNULL_END