@modelcontextprotocol/sdk
    Preparing search index...

    Interface AuthInfo

    Information about a validated access token, provided to request handlers.

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

    Properties

    clientId: string

    The client ID associated with this token.

    expiresAt?: number

    When the token expires (in seconds since epoch).

    extra?: Record<string, unknown>

    Additional data associated with the token. This field should be used for any additional data that needs to be attached to the auth info.

    resource?: URL

    The RFC 8707 resource server identifier for which this token is valid. If set, this MUST match the MCP server's resource identifier (minus hash fragment).

    scopes: string[]

    Scopes associated with this token.

    token: string

    The access token.