# Function: serveSigner()

```ts
function serveSigner(signer, port): () => void;
```

Defined in: [packages/core/src/node/remote.ts:331](https://github.com/leifriksheim/minca/blob/main/core/src/node/remote.ts#L331)

Signs session notes for a `remoteSigner` on the other side of `port`: only
the one note a node asks for, everything about the account
(`SESSION_COMMAND`) to its key until a time. The root key stays here: a
passkey needs a document, and a key in a tab should stay in that tab.
Returns a function that stops.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `signer` | [`RootSigner`](https://minca.dev/api/core/interfaces/RootSigner.md) |
| `port` | [`MessagePortLike`](https://minca.dev/api/core/interfaces/MessagePortLike.md) |

## Returns

() => `void`
