UNPKG

@modelcontextprotocol/sdk

Version:

Model Context Protocol implementation for TypeScript

27 lines 676 B
/** * Information about a validated access token, provided to request handlers. */ export interface AuthInfo { /** * The access token. */ token: string; /** * The client ID associated with this token. */ clientId: string; /** * Scopes associated with this token. */ scopes: string[]; /** * When the token expires (in seconds since epoch). */ expiresAt?: number; /** * Additional data associated with the token. * This field should be used for any additional data that needs to be attached to the auth info. */ extra?: Record<string, unknown>; } //# sourceMappingURL=types.d.ts.map