         
         case .token(let code):
             return ("/token", StravaClient.sharedInstance.tokenParams(code), .post)
+        case .refresh(let code):
+            return ("/token", StravaClient.sharedInstance.refreshParams(code), .post)
+
         case .deauthorize(let token):
             let params = ["access_token" : token]
             return ("/deauthorize", params, .post)

    }
}


        
        var baseURL: URL {
            switch self {
            case .token, .deauthorize, .refresh:
                return URL(string: "https://www.strava.com/oauth")!
            default:
                return URL(string: "https://www.strava.com/api/v3")!
