fix: Disconnecting should clear oauth state
This commit is contained in:
parent
4053aa122d
commit
6a16e7cd24
1 changed files with 7 additions and 0 deletions
|
|
@ -361,6 +361,7 @@ export function useConnection({
|
|||
|
||||
const disconnect = async () => {
|
||||
await mcpClient?.close();
|
||||
authProvider.clear();
|
||||
setMcpClient(null);
|
||||
setConnectionStatus("disconnected");
|
||||
setCompletionsSupported(false);
|
||||
|
|
|
|||
Loading…
Reference in a new issue