Remove unused refresh func (#6499)

This commit is contained in:
Rohit Malhotra 2025-01-28 12:09:29 -05:00 committed by GitHub
parent f3b8bad09f
commit f18729f5f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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