We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4053aa1 commit 6a16e7cCopy full SHA for 6a16e7c
client/src/lib/auth.ts
@@ -68,6 +68,12 @@ class InspectorOAuthClientProvider implements OAuthClientProvider {
68
69
return verifier;
70
}
71
+
72
+ clear() {
73
+ sessionStorage.removeItem(SESSION_KEYS.CLIENT_INFORMATION);
74
+ sessionStorage.removeItem(SESSION_KEYS.TOKENS);
75
+ sessionStorage.removeItem(SESSION_KEYS.CODE_VERIFIER);
76
+ }
77
78
79
export const authProvider = new InspectorOAuthClientProvider();
client/src/lib/hooks/useConnection.ts
@@ -361,6 +361,7 @@ export function useConnection({
361
362
const disconnect = async () => {
363
await mcpClient?.close();
364
+ authProvider.clear();
365
setMcpClient(null);
366
setConnectionStatus("disconnected");
367
setCompletionsSupported(false);
0 commit comments