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

Function pickDcrAuthMethod

packages/core/sdk/src/oauth-service.ts:1275–1280  ·  view source on GitHub ↗
(
    advertised: readonly string[] | undefined,
  )

Source from the content-addressed store, hash-verified

1273 // `none` (so a confidential secret is mandatory). Static clients never reach
1274 // here; they require an explicit grant + secret in `createClient`.
1275 const pickDcrAuthMethod = (
1276 advertised: readonly string[] | undefined,
1277 ): "none" | "client_secret_post" =>
1278 !advertised || advertised.length === 0 || advertised.includes("none")
1279 ? "none"
1280 : "client_secret_post";
1281
1282 type DcrReuseCandidate = {
1283 readonly slug: OAuthClientSlug;

Callers 1

registerDynamicClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected