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

Function verifyAccess

scripts/mars-api.mjs:331–333  ·  view source on GitHub ↗

* Cheapest authenticated call that proves the token is valid AND that the * caller actually has MARS access. A well-formed token can still be * refused by the `mars_preview` / `mars_access_ric1` feature flippers, so * validating the string shape alone would report success too early.

()

Source from the content-addressed store, hash-verified

329 * validating the string shape alone would report success too early.
330 */
331 async verifyAccess() {
332 await request("GET", SESSIONS_PATH, { query: { page_size: 1 } });
333 },
334
335 /**
336 * The token's team and account email, to name the connection. Needs the

Callers

nothing calls this directly

Calls 1

requestFunction · 0.70

Tested by

no test coverage detected