Skip to content

πŸ™Œ OpenHands: AI-Driven Development

Remove unused refresh func (#6499)

Rohit Malhotraf18729f5f88b
diff --git a/frontend/src/api/open-hands.ts b/frontend/src/api/open-hands.ts
index d7c5de7023..58e1ddbb2d 100644
--- a/frontend/src/api/open-hands.ts
+++ b/frontend/src/api/open-hands.ts
@@ -154,25 +154,6 @@ class OpenHands {
return response.status === 200;
}
- /**
- * Refresh Github Token
- * @returns Refreshed Github access token
- */
- static async refreshToken(
- appMode: GetConfigResponse["APP_MODE"],
- userId: string,
- ): Promise<string> {
- if (appMode === "oss") return "";
-
- const response = await openHands.post<GitHubAccessTokenResponse>(
- "/api/refresh-token",
- {
- userId,
- },
- );
- return response.data.access_token;
- }
-
/**
* Get the blob of the workspace zip
* @returns Blob of the workspace zip