@modelcontextprotocol/sdk
    Preparing search index...

    Function auth

    • Orchestrates the full auth flow with a server.

      This can be used as a single entry point for all authorization functionality, instead of linking together the other lower-level functions in this module.

      Parameters

      • provider: OAuthClientProvider
      • __namedParameters: {
            authorizationCode?: string;
            resourceMetadataUrl?: URL;
            scope?: string;
            serverUrl: string | URL;
        }

      Returns Promise<AuthResult>