             "code" : code
         ]
     }
+
+    internal func refreshParams(_ code: String) -> [String: Any]  {
+        return [
+            "client_id" : config?.clientId ?? 0,
+            "client_secret" : config?.clientSecret ?? "",
+            "grant_type" : "refresh_token",
+            "refresh_token" : code
+        ]
+    }
+
     
     internal var safariViewController: SFSafariViewController?
 }

     **/
    public func getAccessToken(_ code: String, result: @escaping (((OAuthToken)?) -> Void)) throws {
        try oauthRequest(Router.token(code: code))?.responseStrava { [weak self] (response: DataResponse<OAuthToken>) in
            guard let `self` = self else { return }
            let token = response.result.value
            self.config?.delegate.set(token)


extension StravaClient {
    
    
    
    fileprivate func isConfigured() -> (Bool) {
        return config != nil
    }
    
    fileprivate func checkConfiguration() {
        if !isConfigured() {
            fatalError("Strava client is not configured")
        }
    }
