# Type Alias: KeyTerms

```ts
type KeyTerms = 
  | {
  recordsOnly: boolean;
  via: "popup";
}
  | {
  origin: string;
  recordsOnly: boolean;
  via: "code";
};
```

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

What a key agrees to in a connect request: how it reached the home, how
much it asks for, and, for a program's key handed over a code, the home it
was handed to.

## Union Members

### Type Literal

```ts
{
  recordsOnly: boolean;
  via: "popup";
}
```

An app's own key

***

### Type Literal

```ts
{
  origin: string;
  recordsOnly: boolean;
  via: "code";
}
```

A program's key, handed to the home at `origin` over a connect code
