MCPcopy Index your code
hub / github.com/modelcontextprotocol/typescript-sdk / applyPostAuth

Function applyPostAuth

src/client/auth.ts:354–359  ·  view source on GitHub ↗

* Applies POST body authentication (RFC 6749 Section 2.3.1)

(clientId: string, clientSecret: string | undefined, params: URLSearchParams)

Source from the content-addressed store, hash-verified

352 * Applies POST body authentication (RFC 6749 Section 2.3.1)
353 */
354function applyPostAuth(clientId: string, clientSecret: string | undefined, params: URLSearchParams): void {
355 params.set('client_id', clientId);
356 if (clientSecret) {
357 params.set('client_secret', clientSecret);
358 }
359}
360
361/**
362 * Applies public client authentication (RFC 6749 Section 2.1)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…