 
   fileprivate let status: Status
   
+  fileprivate var companyInfo: TKCompanyInfo?
+  
   /// Mode identifier that this authentication is for
   public let modeIdentifier: String
+  
+  /// Name of the company that provides that auth.
+  public var name: String? {
+    return companyInfo?.name
+  }
+  
+  /// URL that points to the "About" page of the provider.
+  public var aboutURL: URL? {
+    return companyInfo?.website
+  }
   
   /// Current authentication status
   public var isConnected: Bool {


import RxSwift
import RxCocoa

import SGBookingKit


extension ProviderAuth {
  fileprivate init?(withDictionary dictionary: [String: AnyObject]) {
    guard let mode = dictionary["modeIdentifier"] as? String,
          let status = Status.init(withDictionary: dictionary),
          let company: TKCompanyInfo = try? dictionary.value(for: "companyInfo") else {
      return nil
    }
    
    self.modeIdentifier = mode
    self.status = status
    self.companyInfo = company
  }
}

