You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.5 KiB

6 years ago
  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 FIRUser;
  19. NS_ASSUME_NONNULL_BEGIN
  20. /** @class FIRAuthDataResult
  21. @brief Helper object that contains the result of a successful sign-in, link and reauthenticate
  22. action. It contains references to a FIRUser instance and a FIRAdditionalUserInfo instance.
  23. */
  24. NS_SWIFT_NAME(AuthDataResult)
  25. @interface FIRAuthDataResult : NSObject
  26. /** @fn init
  27. @brief This class should not be initialized manually. `FIRAuthDataResult` instance is
  28. returned as part of `FIRAuthDataResultCallback`.
  29. */
  30. - (instancetype)init NS_UNAVAILABLE;
  31. /** @property user
  32. @brief The signed in user.
  33. */
  34. @property(nonatomic, readonly) FIRUser *user;
  35. /** @property additionalUserInfo
  36. @brief If available contains the additional IdP specific information about signed in user.
  37. */
  38. @property(nonatomic, readonly, nullable) FIRAdditionalUserInfo *additionalUserInfo;
  39. @end
  40. NS_ASSUME_NONNULL_END