InteractionRequiredError
Defined in: src/client/session-delegation.ts:33
Internet Identity had nothing to answer a silent request from.
The one denial that is not a failure: it says a ceremony is needed, so the caller signs in interactively rather than retrying. It is also the only dependable evidence that a shared record is stale rather than replaced, which is what lets an origin retract a record it did not write.
Thrown only for a request that asked not to render anything. An interactive sign-in that the user abandons is a different outcome and is not this.
Extends
Section titled “Extends”Error
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new InteractionRequiredError(
message,reason?):InteractionRequiredError
Defined in: src/client/session-delegation.ts:45
Parameters
Section titled “Parameters”message
Section titled “message”string
reason?
Section titled “reason?”string
Returns
Section titled “Returns”InteractionRequiredError
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
reason
Section titled “reason”
readonlyreason:string|undefined
Defined in: src/client/session-delegation.ts:43
Why, where Internet Identity said: login_required where it holds no
session, account_selection_required where it holds more than one and the
request named none.
A caller may word its prompt from this and does not have to branch on it, so it is deliberately a string rather than a union — a value this library does not know is not a reason to fail.
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