# Function: appKey()

```ts
function appKey(name?): Promise<AppKey>;
```

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

This app's key: made once, kept in this site's IndexedDB, and never
exportable — a script that gets into the page can sign with it while it is
there, but cannot carry it off.

## Parameters

| Parameter | Type | Default value |
| ------ | ------ | ------ |
| `name?` | `string` | `'default'` |

## Returns

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