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

Function parseGrant

packages/core/sdk/src/oauth-service.ts:300–301  ·  view source on GitHub ↗
(grant: unknown)

Source from the content-addressed store, hash-verified

298 * `authorization_code`; an unknown grant means a corrupt row and callers that
299 * drive token exchange (`loadClient`) must fail loudly rather than guessing. */
300const parseGrant = (grant: unknown): OAuthGrant | null =>
301 grant === "client_credentials" || grant === "authorization_code" ? grant : null;
302
303const canonicalDcrIssuer = (
304 issuer: string | null | undefined,

Callers 2

listClientsFunction · 0.85
loadClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected