Skip to content

Commit fb5a568

Browse files
committed
Rename
1 parent 374a0b4 commit fb5a568

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/mcp/server/auth/provider.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,11 +91,11 @@ class TokenError(Exception):
9191
# OK to add fields to subclasses which should not be exposed externally.
9292
AuthorizationCodeT = TypeVar("AuthorizationCodeT", bound=AuthorizationCode)
9393
RefreshTokenT = TypeVar("RefreshTokenT", bound=RefreshToken)
94-
AuthInfoT = TypeVar("AuthInfoT", bound=AccessToken)
94+
AccessTokenT = TypeVar("AccessTokenT", bound=AccessToken)
9595

9696

9797
class OAuthServerProvider(
98-
Protocol, Generic[AuthorizationCodeT, RefreshTokenT, AuthInfoT]
98+
Protocol, Generic[AuthorizationCodeT, RefreshTokenT, AccessTokenT]
9999
):
100100
async def get_client(self, client_id: str) -> OAuthClientInformationFull | None:
101101
"""
@@ -245,7 +245,7 @@ async def exchange_refresh_token(
245245
"""
246246
...
247247

248-
async def load_access_token(self, token: str) -> AuthInfoT | None:
248+
async def load_access_token(self, token: str) -> AccessTokenT | None:
249249
"""
250250
Loads an access token by its token.
251251
@@ -259,7 +259,7 @@ async def load_access_token(self, token: str) -> AuthInfoT | None:
259259

260260
async def revoke_token(
261261
self,
262-
token: AuthInfoT | RefreshTokenT,
262+
token: AccessTokenT | RefreshTokenT,
263263
) -> None:
264264
"""
265265
Revokes an access or refresh token.

0 commit comments

Comments
 (0)