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

Function pickDcrAuthMethod

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

Source from the content-addressed store, hash-verified

701 // `none` (so a confidential secret is mandatory). Static clients never reach
702 // here; they require an explicit grant + secret in `createClient`.
703 const pickDcrAuthMethod = (
704 advertised: readonly string[] | undefined,
705 ): "none" | "client_secret_post" =>
706 !advertised || advertised.length === 0 || advertised.includes("none")
707 ? "none"
708 : "client_secret_post";
709
710 type DcrReuseCandidate = {
711 readonly slug: OAuthClientSlug;

Callers 1

registerDynamicClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected