FIRUserInfo.h 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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 "FIRAuthSwiftNameSupport.h"
  18. NS_ASSUME_NONNULL_BEGIN
  19. /**
  20. @brief Represents user data returned from an identity provider.
  21. */
  22. FIR_SWIFT_NAME(UserInfo)
  23. @protocol FIRUserInfo <NSObject>
  24. /** @property providerID
  25. @brief The provider identifier.
  26. */
  27. @property(nonatomic, copy, readonly) NSString *providerID;
  28. /** @property uid
  29. @brief The provider's user ID for the user.
  30. */
  31. @property(nonatomic, copy, readonly) NSString *uid;
  32. /** @property displayName
  33. @brief The name of the user.
  34. */
  35. @property(nonatomic, copy, readonly, nullable) NSString *displayName;
  36. /** @property photoURL
  37. @brief The URL of the user's profile photo.
  38. */
  39. @property(nonatomic, copy, readonly, nullable) NSURL *photoURL;
  40. /** @property email
  41. @brief The user's email address.
  42. */
  43. @property(nonatomic, copy, readonly, nullable) NSString *email;
  44. /** @property phoneNumber
  45. @brief A phone number associated with the user.
  46. @remarks This property is only available for users authenticated via phone number auth.
  47. */
  48. @property(nonatomic, readonly, nullable) NSString *phoneNumber;
  49. @end
  50. NS_ASSUME_NONNULL_END