Skip to content

SessionNotHeldError

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

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:315

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@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26

Error.cause


message: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077

Error.message


name: string

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

Error.name


optional stack?: string

Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078

Error.stack