     if let cached = OAuthClient.cachedCredentials(mode: mode) {
       if (cached.isValid || cached.hasRefreshToken) {
         let status = ProviderAuth.Status.connected(nil)
-        return ProviderAuth(status: status, modeIdentifier: mode)
+        return ProviderAuth(status: status, companyInfo: nil, modeIdentifier: mode)
       } else {
         // Remove outdated credentials that we can't renew
         _ = OAuthClient.removeCredentials(mode: mode)


import RxSwift
import RxCocoa

import SGBookingKit



  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 {
