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

Method discoveryState

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

* Returns previously saved discovery state, or `undefined` if none is cached. * * When available, code auth restores the discovery state (authorization server * URL, resource metadata, etc.) instead of performing RFC 9728 discovery, reducing * latency on subsequent calls.

()

Source from the content-addressed store, hash-verified

214 * re-discovery in case the authorization server has changed.
215 */
216 discoveryState?(): OAuthDiscoveryState | undefined | Promise<OAuthDiscoveryState | undefined>;
217}
218
219/**

Callers 1

authInternalFunction · 0.80

Implementers 5

ConformanceOAuthProvidertest/conformance/src/helpers/conforman
ClientCredentialsProvidersrc/client/auth-extensions.ts
PrivateKeyJwtProvidersrc/client/auth-extensions.ts
StaticPrivateKeyJwtProvidersrc/client/auth-extensions.ts
InMemoryOAuthClientProvidersrc/examples/client/simpleOAuthClientP

Calls

no outgoing calls

Tested by

no test coverage detected