# Function: receiveConnectCode()

```ts
function receiveConnectCode(options): Promise<IncomingRequest | null>;
```

Defined in: [packages/core/src/session/connect-code.ts:291](https://github.com/leifriksheim/minca/blob/main/core/src/session/connect-code.ts#L291)

The account home's connect page, opened at a code: answers the program and
hands its ask to the same approval as an app's, as a request for records in
the whole account. `approve` sends the note, `deny` says no. `onAnswered`
says how it went, since this page was opened by a person, not an app, and
stays open: allowed only once the program says it has the note.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `options` | `CodeNetwork` & `object` |

## Returns

`Promise`\<[`IncomingRequest`](https://minca.dev/api/session/interfaces/IncomingRequest.md) \| `null`\>

The program's request, or null when none came
