@@ -91,11 +91,11 @@ class TokenError(Exception):
9191# OK to add fields to subclasses which should not be exposed externally.
9292AuthorizationCodeT = TypeVar ("AuthorizationCodeT" , bound = AuthorizationCode )
9393RefreshTokenT = TypeVar ("RefreshTokenT" , bound = RefreshToken )
94- AuthInfoT = TypeVar ("AuthInfoT " , bound = AccessToken )
94+ AccessTokenT = TypeVar ("AccessTokenT " , bound = AccessToken )
9595
9696
9797class 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