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 {
90
90
}
91
91
92
92
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 ) ) ;
96
96
}
97
97
}
Original file line number Diff line number Diff line change @@ -396,6 +396,7 @@ export function useConnection({
396
396
397
397
const disconnect = async ( ) => {
398
398
await mcpClient ?. close ( ) ;
399
+ const authProvider = new InspectorOAuthClientProvider ( sseUrl ) ;
399
400
authProvider . clear ( ) ;
400
401
setMcpClient ( null ) ;
401
402
setConnectionStatus ( "disconnected" ) ;
You can’t perform that action at this time.
0 commit comments