@node-in-layers/mcp-server
    Preparing search index...

    Interface AuthInfo

    OAuth / token auth information for the current request, sourced from the MCP SDK's RequestHandlerExtra.authInfo. Only present when the MCP server is configured with an OAuth provider and the client has authenticated.

    interface AuthInfo {
        clientId: string;
        expiresAt?: number;
        extra?: Record<string, unknown>;
        resource?: URL;
        scopes: string[];
        token: string;
    }
    Index

    Properties

    clientId: string

    The OAuth client ID that obtained this token.

    expiresAt?: number

    Unix timestamp (seconds since epoch) at which the token expires. Omitted if the token has no expiry.

    extra?: Record<string, unknown>

    Any additional provider-specific data attached to the token.

    resource?: URL

    The RFC 8707 resource server identifier for which this token is valid. When set, must match the MCP server's own resource identifier.

    scopes: string[]

    Scopes granted to this token (e.g. ['read', 'write']).

    token: string

    The raw bearer access token string.