MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / remove

Function remove

scripts/mars-credentials.mjs:386–396  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

384 },
385
386 remove(id) {
387 forgetToken(id);
388 state.connections = state.connections.filter(
389 (connection) => connection.id !== id,
390 );
391 if (state.activeConnectionId === id) {
392 state.activeConnectionId = state.connections[0]?.id ?? null;
393 }
394 persist();
395 return this.getActive();
396 },
397
398 /** Test seam: drop cached state and re-read from disk. */
399 reload() {

Callers

nothing calls this directly

Calls 2

forgetTokenFunction · 0.85
persistFunction · 0.85

Tested by

no test coverage detected