 
   static var emailPasswordSection: Section {
     let image = UIImage(named: "firebaseIcon")
-    let item = Item(title: emailPassword.rawValue, hasNestedContent: true, image: image)
+    let item = Item(title: emailPassword.name, hasNestedContent: true, image: image)
     let footer = "A example login flow with password authentication."
     return Section(footerDescription: footer, items: [item])
   }


/// Firebase Auth supported identity providers and other methods of authentication
enum AuthProvider: String {
  case google = "Google"
  case apple = "Apple"
  case twitter = "Twitter"
  case microsoft = "Microsoft"
  case gitHub = "GitHub"
  case yahoo = "Yahoo"
  case facebook = "Facebook"
  case emailPassword = "Email & Password Login"
  case passwordless = "Email Link/Passwordless"
  case phoneNumber = "Phone Number"
  case anonymous = "Anonymous Authentication"
  case custom = "Custom Auth System"

  var id: String {
    switch self {
    case .emailPassword:
      return "password"
    case .phoneNumber:
      return "phone"
    case .passwordless:
      return "emailLink"
    case .anonymous:
      return "anonymous"
    case .custom:
      return "custom"
    default:
      return rawValue.lowercased().appending(".com")
    }
  }
}

    let shieldSymbol = UIImage.systemImage("lock.shield.fill", tintColor: .systemOrange)

    let otherOptions = [
      Item(title: passwordless.name, image: lockSymbol),
      Item(title: phoneNumber.name, image: phoneSymbol),
      Item(title: anonymous.name, image: anonSymbol),
      Item(title: custom.name, image: shieldSymbol),
    ]
    return Section(footerDescription: "Other authentication methods.", items: otherOptions)
  }
