# Interface: IncomingRequest

Defined in: [packages/core/src/session/connect.ts:742](https://github.com/leifriksheim/minca/blob/main/core/src/session/connect.ts#L742)

A request as the home received it

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="property-check"></a> `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](https://github.com/leifriksheim/minca/blob/main/core/src/session/connect.ts#L747) |
| <a id="property-origin"></a> `origin` | `readonly` | `string` | Where it came from, as the browser reports it — the only name to trust | [packages/core/src/session/connect.ts:745](https://github.com/leifriksheim/minca/blob/main/core/src/session/connect.ts#L745) |
| <a id="property-request"></a> `request` | `readonly` | \| [`ConnectRequest`](https://minca.dev/api/session/interfaces/ConnectRequest.md) \| [`ProposeRequest`](https://minca.dev/api/session/interfaces/ProposeRequest.md) | - | [packages/core/src/session/connect.ts:743](https://github.com/leifriksheim/minca/blob/main/core/src/session/connect.ts#L743) |

## Methods

### approve()

```ts
approve(answer, closeAfter?): void;
```

Defined in: [packages/core/src/session/connect.ts:753](https://github.com/leifriksheim/minca/blob/main/core/src/session/connect.ts#L753)

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`](https://minca.dev/api/session/interfaces/Grant.md), `"home"`\> \| `Omit`\<[`CarryGrant`](https://minca.dev/api/session/interfaces/CarryGrant.md), `"home"`\> \| [`Proposed`](https://minca.dev/api/session/interfaces/Proposed.md) |
| `closeAfter?` | `Promise`\<`unknown`\> |

#### Returns

`void`

***

### deny()

```ts
deny(reason?): void;
```

Defined in: [packages/core/src/session/connect.ts:758](https://github.com/leifriksheim/minca/blob/main/core/src/session/connect.ts#L758)

Says no, and closes the window

#### Parameters

| Parameter | Type |
| ------ | ------ |
| `reason?` | `string` |

#### Returns

`void`
