# Interface: Connection

Defined in: [packages/core/src/session/auth.ts:236](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L236)

An app this account gave access to, as the home remembers it

## Properties

| Property | Modifier | Type | Description | Defined in |
| ------ | ------ | ------ | ------ | ------ |
| <a id="property-access"></a> `access` | `readonly` | `"read"` \| `"carry"` \| `"write"` | `carry` for a carrier, which holds passes and no keys | [packages/core/src/session/auth.ts:244](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L244) |
| <a id="property-audience"></a> `audience` | `readonly` | `string` | The app's key | [packages/core/src/session/auth.ts:242](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L242) |
| <a id="property-carryspace"></a> `carrySpace?` | `readonly` | `string` | A carrier's carry space — what disconnecting takes away | [packages/core/src/session/auth.ts:248](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L248) |
| <a id="property-expiresat"></a> `expiresAt` | `readonly` | `number` | When its grant runs out, Unix seconds; 0 for a carrier, which never expires | [packages/core/src/session/auth.ts:254](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L254) |
| <a id="property-grantedat"></a> `grantedAt` | `readonly` | `string` | When it was connected, ISO | [packages/core/src/session/auth.ts:252](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L252) |
| <a id="property-name"></a> `name` | `readonly` | `string` \| `null` | What the app called itself | [packages/core/src/session/auth.ts:240](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L240) |
| <a id="property-origin"></a> `origin` | `readonly` | `string` | Where the app lives — as the browser reported it, not as the app named itself | [packages/core/src/session/auth.ts:238](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L238) |
| <a id="property-recordsonly"></a> `recordsOnly?` | `readonly` | `true` | Present, and true, when its note grants records only | [packages/core/src/session/auth.ts:258](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L258) |
| <a id="property-retired"></a> `retired?` | `readonly` | readonly [`RetiredKey`](https://minca.dev/api/session/interfaces/RetiredKey.md)[] | Keys that wrote, which this connection replaced, left unrevoked: revoking from what this home has seen would withdraw what they wrote that it hasn't. Disconnecting revokes each where it was granted. | [packages/core/src/session/auth.ts:264](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L264) |
| <a id="property-scope"></a> `scope` | `readonly` | `"spaces"` \| `"account"` | `account` when the app was given the whole account, not chosen spaces | [packages/core/src/session/auth.ts:246](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L246) |
| <a id="property-spaces"></a> `spaces` | `readonly` | readonly `object`[] | The spaces it was given, by id and name | [packages/core/src/session/auth.ts:250](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L250) |
| <a id="property-via"></a> `via?` | `readonly` | `"code"` | `code` for a program connected by code, at the home's own `origin`: kept by its key | [packages/core/src/session/auth.ts:256](https://github.com/leifriksheim/minca/blob/main/core/src/session/auth.ts#L256) |
