Merge pull request #787 from JeremyCraigMartinez/patch-1

Update oauth.mdx
This commit is contained in:
Jeremiah Lowin 2025-06-10 16:43:19 -04:00 committed by GitHub
commit a0aa380d3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -102,7 +102,7 @@ OAuth access tokens are automatically cached in `~/.fastmcp/oauth-mcp-client-cac
To clear the tokens for a specific server, instantiate a `FileTokenStorage` instance and call the `clear` method:
```python
from fastmcp.client.auth import FileTokenStorage
from fastmcp.client.auth.oauth import FileTokenStorage
storage = FileTokenStorage(server_url="https://fastmcp.cloud/mcp")
await storage.clear()
@ -111,7 +111,7 @@ await storage.clear()
To clear *all* tokens for all servers, call the `clear_all` method on the `FileTokenStorage` class:
```python
from fastmcp.client.auth import FileTokenStorage
from fastmcp.client.auth.oauth import FileTokenStorage
FileTokenStorage.clear_all()
```
```