minca
ApiSessionInterfaces

Interface: IncomingRequest

Defined in: packages/core/src/session/connect.ts:742

A request as the home received it

Properties

PropertyModifierTypeDescriptionDefined in
check?readonlystringFor a program connected by code: the six digits the person gives the program, which keeps its note only thenpackages/core/src/session/connect.ts:747
originreadonlystringWhere it came from, as the browser reports it — the only name to trustpackages/core/src/session/connect.ts:745
requestreadonly| ConnectRequest | ProposeRequest-packages/core/src/session/connect.ts:743

Methods

approve()

approve(answer, closeAfter?): void;

Defined in: packages/core/src/session/connect.ts:753

Sends the answer back to that origin, and closes the window — once closeAfter settles, when given: what this window's node wrote for the asker may still have to reach it.

Parameters

ParameterType
answer| Omit<Grant, "home"> | Omit<CarryGrant, "home"> | Proposed
closeAfter?Promise<unknown>

Returns

void


deny()

deny(reason?): void;

Defined in: packages/core/src/session/connect.ts:758

Says no, and closes the window

Parameters

ParameterType
reason?string

Returns

void

On this page