Format OAuth refresh consistency changes

This commit is contained in:
fawney19
2026-04-28 09:54:35 +08:00
parent 29fc0be121
commit 3f1abb6906
3 changed files with 18 additions and 10 deletions

View File

@@ -990,10 +990,12 @@ impl AppState {
let _ = self
.invalidate_local_oauth_refresh_entry(&current_transport.key.id)
.await;
return Err(provider_transport::LocalOAuthRefreshError::InvalidResponse {
provider_type: "gateway",
message: format!("local oauth refresh persistence failed: {err:?}"),
});
return Err(
provider_transport::LocalOAuthRefreshError::InvalidResponse {
provider_type: "gateway",
message: format!("local oauth refresh persistence failed: {err:?}"),
},
);
}
self.oauth_refresh
.store_cached_entry(current_transport.key.id.trim(), refreshed_entry.clone())