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.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SessionNotHeldError(
message?):SessionNotHeldError
Defined in: src/client/auth-client.ts:315
Parameters
Section titled “Parameters”message?
Section titled “message?”string = 'A sign-in exists for this domain, but this origin holds no credential for it'
Returns
Section titled “Returns”SessionNotHeldError
Overrides
Section titled “Overrides”Error.constructor
Properties
Section titled “Properties”cause?
Section titled “cause?”
optionalcause?:unknown
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts:26
Inherited from
Section titled “Inherited from”Error.cause
message
Section titled “message”message:
string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1077
Inherited from
Section titled “Inherited from”Error.message
name:
string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1076
Inherited from
Section titled “Inherited from”Error.name
stack?
Section titled “stack?”
optionalstack?:string
Defined in: node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts:1078
Inherited from
Section titled “Inherited from”Error.stack