@modelcontextprotocol/sdk
    Preparing search index...

    Type Alias AuthRouterOptions

    type AuthRouterOptions = {
        authorizationOptions?: Omit<AuthorizationHandlerOptions, "provider">;
        baseUrl?: URL;
        clientRegistrationOptions?: Omit<
            ClientRegistrationHandlerOptions,
            "clientsStore",
        >;
        issuerUrl: URL;
        provider: OAuthServerProvider;
        resourceName?: string;
        revocationOptions?: Omit<RevocationHandlerOptions, "provider">;
        scopesSupported?: string[];
        serviceDocumentationUrl?: URL;
        tokenOptions?: Omit<TokenHandlerOptions, "provider">;
    }
    Index

    Properties

    authorizationOptions?: Omit<AuthorizationHandlerOptions, "provider">
    baseUrl?: URL

    The base URL of the authorization server to use for the metadata endpoints.

    If not provided, the issuer URL will be used as the base URL.

    clientRegistrationOptions?: Omit<
        ClientRegistrationHandlerOptions,
        "clientsStore",
    >
    issuerUrl: URL

    The authorization server's issuer identifier, which is a URL that uses the "https" scheme and has no query or fragment components.

    A provider implementing the actual authorization logic for this router.

    resourceName?: string

    The resource name to be displayed in protected resource metadata

    revocationOptions?: Omit<RevocationHandlerOptions, "provider">
    scopesSupported?: string[]

    An optional list of scopes supported by this authorization server

    serviceDocumentationUrl?: URL

    An optional URL of a page containing human-readable information that developers might want or need to know when using the authorization server.

    tokenOptions?: Omit<TokenHandlerOptions, "provider">