fix: clean up OAuth token cache on provider deletion (#7908)

Signed-off-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Vincenzo Palazzo
2026-03-17 18:54:11 +01:00
committed by GitHub
parent b4f018f6f9
commit 827175619a
14 changed files with 174 additions and 9 deletions
+34
View File
@@ -1383,6 +1383,40 @@
}
}
},
"/config/providers/{name}/cleanup": {
"post": {
"tags": [
"super::routes::config_management"
],
"operationId": "cleanup_provider_cache",
"parameters": [
{
"name": "name",
"in": "path",
"description": "Provider name (e.g., githubcopilot)",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Provider cache cleaned up successfully",
"content": {
"text/plain": {
"schema": {
"type": "string"
}
}
}
},
"500": {
"description": "Internal server error"
}
}
}
},
"/config/providers/{name}/models": {
"get": {
"tags": [