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

Function pickDcrAuthMethod

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

Source from the content-addressed store, hash-verified

714 // `none` (so a confidential secret is mandatory). Static clients never reach
715 // here; they require an explicit grant + secret in `createClient`.
716 const pickDcrAuthMethod = (
717 advertised: readonly string[] | undefined,
718 ): "none" | "client_secret_post" =>
719 !advertised || advertised.length === 0 || advertised.includes("none")
720 ? "none"
721 : "client_secret_post";
722
723 type DcrReuseCandidate = {
724 readonly slug: OAuthClientSlug;

Callers 1

registerDynamicClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected