Skip to content

SessionNotHeldError

Defined in: src/client/auth-client.ts:342

Thrown when a sign-in exists within the state store’s reach but this origin holds no credential for it.

A sibling subdomain reads the shared record on its first load and is in exactly this position: someone is signed in, and it has nothing to act with until it acquires its own. Catching this is where a silent re-issue belongs.

  • Error

new SessionNotHeldError(message?): SessionNotHeldError

Defined in: src/client/auth-client.ts:343

string = 'A sign-in exists for this domain, but this origin holds no credential for it'

SessionNotHeldError

Error.constructor

optional cause?: unknown

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24

Error.cause


message: string

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075

Error.message


name: string

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1074

Error.name


optional stack?: string

Defined in: node_modules/.pnpm/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Error.stack