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

Function pickDcrAuthMethod

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

Source from the content-addressed store, hash-verified

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

Callers 1

registerDynamicClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected