Revert "fix(admin): force manual oauth refresh to bypass local cache"

This reverts commit 85a630cfa9.
This commit is contained in:
fawney19
2026-04-17 13:36:51 +08:00
parent c6af4791f8
commit 654a41c3b0
3 changed files with 24 additions and 87 deletions

View File

@@ -29,7 +29,7 @@ pub(super) async fn execute_admin_provider_oauth_refresh(
Ok(None) => {
return Ok(RefreshDispatch::Respond(response::control_error_response(
http::StatusCode::BAD_REQUEST,
"Token 刷新未执行,请检查授权配置",
"缺少 refresh_token需要重新授权",
)));
}
Err(AdminLocalOAuthRefreshError::HttpStatus {

View File

@@ -619,7 +619,7 @@ impl AppState {
for _ in 0..2 {
let resolution = self
.oauth_refresh
.force_refresh_with_result(
.resolve_with_result(
&executor,
&current_transport,
distributed_lock.as_ref(),