MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isUnauthenticatedCallback

Function isUnauthenticatedCallback

apps/local/src/identity.ts:58–65  ·  view source on GitHub ↗
(request: Request)

Source from the content-addressed store, hash-verified

56// the shell's `isUnauthenticatedOAuthCallbackPath` exemption (cloud/self-host
57// instead authenticate the callback via the same-origin session cookie).
58const isUnauthenticatedCallback = (request: Request): boolean => {
59 // oxlint-disable-next-line executor/no-try-catch-or-throw -- boundary: parsing a request URL that should always be valid here
60 try {
61 return /\/oauth\/callback(\/|$)/.test(new URL(request.url).pathname);
62 } catch {
63 return false;
64 }
65};
66
67/**
68 * Build the local `IdentityProvider`: validate the request's bearer token

Callers 1

makeLocalIdentityLayerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected