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

Function pickDcrAuthMethod

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

Source from the content-addressed store, hash-verified

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

Callers 1

registerDynamicClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected