MCP TypeScript SDK (V2) / @modelcontextprotocol/client / client/authSeam
client/authSeam
Functions
isAuthSeamEscape()
isAuthSeamEscape(
error):boolean
Defined in: packages/client/src/client/authSeam.ts:35
Whether error escaped through a transport auth seam.
Parameters
error
unknown
Returns
boolean
markAuthSeamEscape()
markAuthSeamEscape<
T>(error):T
Defined in: packages/client/src/client/authSeam.ts:23
Stamp error as an auth-seam escape and return it — identity-preserving (the same object flows on, instanceof and .cause chains intact). A frozen/sealed object is returned unstamped rather than replaced: identity outranks provenance. Primitive throws cannot carry the stamp.
Type Parameters
T
T
Parameters
error
T
Returns
T