(row: OAuthClientGcRow)
| 119 | * apps. |
| 120 | */ |
| 121 | export 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. */ |
| 130 | export type OAuthClientGcDecision = |
no outgoing calls
no test coverage detected