Skip to content

Commit 0371e87

Browse files
author
Nikodemas-Tuckus
committed
Fix TODO type hint in simple-auth example
1 parent 8b1aff1 commit 0371e87

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎examples/servers/simple-auth/mcp_simple_auth/simple_auth_provider.py‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,7 @@ async def exchange_refresh_token(
265265
"""Exchange refresh token - not supported in this example."""
266266
raise NotImplementedError("Refresh tokens not supported")
267267

268-
# TODO(Marcelo): The type hint is wrong. We need to fix, and test to check if it works.
269-
async def revoke_token(self, token: str, token_type_hint: str | None = None) -> None: # type: ignore
268+
async def revoke_token(self, token: AccessToken | RefreshToken) -> None:
270269
"""Revoke a token."""
271-
if token in self.tokens:
272-
del self.tokens[token]
270+
if token.token in self.tokens:
271+
del self.tokens[token.token]

0 commit comments

Comments
 (0)