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

Function pickDcrAuthMethod

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

Source from the content-addressed store, hash-verified

687 // `none` (so a confidential secret is mandatory). Static clients never reach
688 // here; they require an explicit grant + secret in `createClient`.
689 const pickDcrAuthMethod = (
690 advertised: readonly string[] | undefined,
691 ): "none" | "client_secret_post" =>
692 !advertised || advertised.length === 0 || advertised.includes("none")
693 ? "none"
694 : "client_secret_post";
695
696 type DcrReuseCandidate = {
697 readonly slug: OAuthClientSlug;

Callers 1

registerDynamicClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected