mirror of
https://github.com/PrefectHQ/fastmcp.git
synced 2026-08-22 21:44:18 +02:00
Merge pull request #787 from JeremyCraigMartinez/patch-1
Update oauth.mdx
This commit is contained in:
commit
a0aa380d3b
1 changed files with 3 additions and 3 deletions
|
|
@ -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()
|
||||
```
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue