UserInfo.swift 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. // Copyright 2023 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. import Foundation
  15. /**
  16. @brief Represents user data returned from an identity provider.
  17. */
  18. @objc(FIRUserInfo) public protocol UserInfo: NSObjectProtocol {
  19. /** @property providerID
  20. @brief The provider identifier.
  21. */
  22. var providerID: String { get }
  23. /** @property uid
  24. @brief The provider's user ID for the user.
  25. */
  26. var uid: String { get }
  27. /** @property displayName
  28. @brief The name of the user.
  29. */
  30. var displayName: String? { get }
  31. /** @property photoURL
  32. @brief The URL of the user's profile photo.
  33. */
  34. var photoURL: URL? { get }
  35. /** @property email
  36. @brief The user's email address.
  37. */
  38. var email: String? { get }
  39. /** @property phoneNumber
  40. @brief A phone number associated with the user.
  41. @remarks This property is only available for users authenticated via phone number auth.
  42. */
  43. var phoneNumber: String? { get }
  44. }