File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -90,8 +90,8 @@ export class InspectorOAuthClientProvider implements OAuthClientProvider {
9090 }
9191
9292 clear ( ) {
93- sessionStorage . removeItem ( SESSION_KEYS . CLIENT_INFORMATION ) ;
94- sessionStorage . removeItem ( SESSION_KEYS . TOKENS ) ;
95- sessionStorage . removeItem ( SESSION_KEYS . CODE_VERIFIER ) ;
93+ sessionStorage . removeItem ( getServerSpecificKey ( SESSION_KEYS . CLIENT_INFORMATION , this . serverUrl ) ) ;
94+ sessionStorage . removeItem ( getServerSpecificKey ( SESSION_KEYS . TOKENS , this . serverUrl ) ) ;
95+ sessionStorage . removeItem ( getServerSpecificKey ( SESSION_KEYS . CODE_VERIFIER , this . serverUrl ) ) ;
9696 }
9797}
Original file line number Diff line number Diff line change @@ -396,6 +396,7 @@ export function useConnection({
396396
397397 const disconnect = async ( ) => {
398398 await mcpClient ?. close ( ) ;
399+ const authProvider = new InspectorOAuthClientProvider ( sseUrl ) ;
399400 authProvider . clear ( ) ;
400401 setMcpClient ( null ) ;
401402 setConnectionStatus ( "disconnected" ) ;
You can’t perform that action at this time.
0 commit comments