# Function: encodePairingTicket()

```ts
function encodePairingTicket(ticket): string;
```

Defined in: [packages/core/src/identity/pairing.ts:55](https://github.com/leifriksheim/minca/blob/main/core/src/identity/pairing.ts#L55)

Packs a ticket for a URL fragment.

A fragment, because browsers never put one in a request, so the secret
reaches the phone without passing through the server hosting the page.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `ticket` | [`PairingTicket`](https://minca.dev/api/core/interfaces/PairingTicket.md) |

## Returns

`string`
