# Function: readConnectCode()

```ts
function readConnectCode(input): Uint8Array;
```

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

The secret a code holds, from anything it is found in: the code, or the
link the program opened.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `input` | `string` |

## Returns

`Uint8Array`

## Throws

When there is no code in it
