File tree Expand file tree Collapse file tree
crates/rmcp/src/transport Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1722,9 +1722,11 @@ impl AuthorizationManager {
17221722
17231723 /// Get access token from local credential store.
17241724 /// If expired, refresh it automatically when a refresh token is available.
1725- /// When the access token has expired and no refresh token is available (or
1726- /// the refresh itself fails), returns [`AuthError::AuthorizationRequired`]
1727- /// so the caller can re-authenticate.
1725+ /// When the access token has expired and no refresh token is available, or the
1726+ /// authorization server rejects the refresh token, returns
1727+ /// [`AuthError::AuthorizationRequired`] so the caller can re-authenticate.
1728+ /// Transient refresh failures return [`AuthError::TokenRefreshFailed`] so the
1729+ /// caller can retry; other errors are propagated as-is.
17281730 pub async fn get_access_token ( & self ) -> Result < String , AuthError > {
17291731 let stored = self . credential_store . load ( ) . await ?;
17301732 let Some ( stored_creds) = stored else {
You can’t perform that action at this time.
0 commit comments