      - parameter code: the code returned from Strava after granting access to the application
      **/
     case token(code: String)
-    
+
+    /**
+     Requests a Strava OAuth token refresh
+     
+     - parameter refresh: the refresh token returned from Strava after granting access to the application
+     **/
+    case refresh(code: String)
+
     /**
      Allows an application to revoke its access to an athlete’s data. This will invalidate all access tokens associated with the ‘athlete,application’ pair used to create the token. The application will be removed from the Athlete Settings page on Strava. All requests made using invalidated tokens will receive a 401 Unauthorized response.
      

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

    }
}


