MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / oauth-refresh-cross-session.test.ts

File oauth-refresh-cross-session.test.ts

e2e/selfhost/oauth-refresh-cross-session.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1// Selfhost-only: two MCP sessions that hit an expired token at the same moment
2// must share ONE refresh-token grant, never race two.
3//
4// Issue #1520: the in-flight refresh gate lived inside a single execution

Callers

nothing calls this directly

Calls 12

scenarioFunction · 0.90
serveOAuthTestServerFunction · 0.90
composePluginApiFunction · 0.85
completeMethod · 0.80
serveUpstreamFunction · 0.70
uniqueFunction · 0.70
specFunction · 0.70
completeAuthorizationFunction · 0.70
startMethod · 0.65
listMethod · 0.65
removeMethod · 0.65
makeClientFunction · 0.50

Tested by

no test coverage detected