MCPcopy Create free account
hub / github.com/github/copilot-sdk / parseBearerToken

Function parseBearerToken

test/harness/test-mcp-oauth-server.mjs:272–275  ·  view source on GitHub ↗
(authorization)

Source from the content-addressed store, hash-verified

270}
271
272function parseBearerToken(authorization) {
273 const match = /^Bearer (.+)$/.exec(authorization ?? "");
274 return match?.[1];
275}
276
277function challengeInitial(res, baseUrl) {
278 const resourceMetadataUrl = `${baseUrl}${PROTECTED_RESOURCE_PATH}`;

Callers 1

startOAuthMcpServerFunction · 0.85

Calls 1

execMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…