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

Function pickDcrAuthMethod

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

Source from the content-addressed store, hash-verified

1220 // `none` (so a confidential secret is mandatory). Static clients never reach
1221 // here; they require an explicit grant + secret in `createClient`.
1222 const pickDcrAuthMethod = (
1223 advertised: readonly string[] | undefined,
1224 ): "none" | "client_secret_post" =>
1225 !advertised || advertised.length === 0 || advertised.includes("none")
1226 ? "none"
1227 : "client_secret_post";
1228
1229 type DcrReuseCandidate = {
1230 readonly slug: OAuthClientSlug;

Callers 1

registerDynamicClientFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected