MCPcopy Create free account
hub / github.com/modelcontextprotocol/typescript-sdk / applyPublicAuth

Function applyPublicAuth

src/client/auth.ts:364–366  ·  view source on GitHub ↗

* Applies public client authentication (RFC 6749 Section 2.1)

(clientId: string, params: URLSearchParams)

Source from the content-addressed store, hash-verified

362 * Applies public client authentication (RFC 6749 Section 2.1)
363 */
364function applyPublicAuth(clientId: string, params: URLSearchParams): void {
365 params.set('client_id', clientId);
366}
367
368/**
369 * Parses an OAuth error response from a string or Response object.

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…