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

Function parseGrant

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

Source from the content-addressed store, hash-verified

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

Callers 2

listClientsFunction · 0.85
loadClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected