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

Function parseGrant

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

Source from the content-addressed store, hash-verified

238 * `authorization_code`; an unknown grant means a corrupt row and callers that
239 * drive token exchange (`loadClient`) must fail loudly rather than guessing. */
240const parseGrant = (grant: unknown): OAuthGrant | null =>
241 grant === "client_credentials" || grant === "authorization_code" ? grant : null;
242
243const canonicalDcrIssuer = (
244 issuer: string | null | undefined,

Callers 2

listClientsFunction · 0.85
loadClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected