MCP TypeScript SDK (V2)
V1 Docs
Preparing search index...
@modelcontextprotocol/client
client/auth
AddClientAuthentication
Type Alias AddClientAuthentication
AddClientAuthentication
:
(
headers
:
Headers
,
params
:
URLSearchParams
,
url
:
string
|
URL
,
metadata
?:
AuthorizationServerMetadata
,
)
=>
void
|
Promise
<
void
>
Function type for adding client authentication to token requests.
Type Declaration
(
headers
:
Headers
,
params
:
URLSearchParams
,
url
:
string
|
URL
,
metadata
?:
AuthorizationServerMetadata
,
)
:
void
|
Promise
<
void
>
Parameters
headers
:
Headers
params
:
URLSearchParams
url
:
string
|
URL
Optional
metadata
:
AuthorizationServerMetadata
Returns
void
|
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
V1 Docs
MCP TypeScript SDK (V2)
Loading...
Function type for adding client authentication to token requests.