             "code" : code
         ]
     }
+    
+    internal var safariViewController: SFSafariViewController?
 }
 
 //MARK:varConfig

import Foundation
import Alamofire
import SwiftyJSON

/**
 StravaClient responsible for making all api requests

     - Returns: the OAuth code
     **/
    public func handleAuthorizationRedirect(_ url: URL) -> String?  {
        safariViewController?.dismiss(animated: true, completion: nil)
        safariViewController = nil
        return url.getQueryParameters()?["code"]
    }
    
