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

Function getToken

scripts/mars-credentials.mjs:296–300  ·  view source on GitHub ↗

Token of one connection, or null once it is removed or expired.

(id)

Source from the content-addressed store, hash-verified

294
295 /** Token of one connection, or null once it is removed or expired. */
296 getToken(id) {
297 const connection = find(id);
298 if (!connection || isExpired(connection)) return null;
299 return decrypt(connection);
300 },
301
302 /**
303 * Save a credential and make it active. Entering a token this store

Callers 2

clientForFunction · 0.85
requestFunction · 0.85

Calls 3

findFunction · 0.85
isExpiredFunction · 0.85
decryptFunction · 0.85

Tested by

no test coverage detected