ApiSessionInterfaces
Interface: IncomingRequest
Defined in: packages/core/src/session/connect.ts:742
A request as the home received it
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
check? | readonly | string | For a program connected by code: the six digits the person gives the program, which keeps its note only then | packages/core/src/session/connect.ts:747 |
origin | readonly | string | Where it came from, as the browser reports it — the only name to trust | packages/core/src/session/connect.ts:745 |
request | readonly | | 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
| Parameter | Type |
|---|---|
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
| Parameter | Type |
|---|---|
reason? | string |
Returns
void