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

Function parseGrant

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

Source from the content-addressed store, hash-verified

376 * `authorization_code`; an unknown grant means a corrupt row and callers that
377 * drive token exchange (`loadClient`) must fail loudly rather than guessing. */
378const parseGrant = (grant: unknown): OAuthGrant | null =>
379 grant === "client_credentials" || grant === "authorization_code" || grant === "id_jag"
380 ? grant
381 : null;
382
383const canonicalDcrIssuer = (
384 issuer: string | null | undefined,

Callers 2

listClientsFunction · 0.85
loadClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected