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

Function isDcrClassifiedRow

packages/core/sdk/src/oauth-gc.ts:121–127  ·  view source on GitHub ↗
(row: OAuthClientGcRow)

Source from the content-addressed store, hash-verified

119 * apps.
120 */
121export const isDcrClassifiedRow = (row: OAuthClientGcRow): boolean => {
122 if (row.origin_kind === "dynamic_client_registration") return true;
123 if (row.origin_kind != null) return false;
124 if (row.grant !== "authorization_code") return false;
125 const resource = row.resource == null ? "" : String(row.resource);
126 return resource.length > 0;
127};
128
129/** The GC decision for one `oauth_client` row. */
130export type OAuthClientGcDecision =

Callers 5

oauth-gc.test.tsFile · 0.90
parseOAuthClientOriginFunction · 0.90
classifyOAuthClientGcFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected