# Function: signRequest()

```ts
function signRequest(
   key, 
   method, 
   path, 
   body?, 
   provider?, 
   at?
): Promise<string>;
```

Defined in: [packages/core/src/session/hosting.ts:85](https://github.com/leifriksheim/minca/blob/main/core/src/session/hosting.ts#L85)

The `Authorization` header for a request.

## Parameters

| Parameter | Type | Default value | Description |
| ------ | ------ | ------ | ------ |
| `key` | [`SubscriptionKey`](https://minca.dev/api/core/interfaces/SubscriptionKey.md) | `undefined` | - |
| `method` | `string` | `undefined` | - |
| `path` | `string` | `undefined` | The path and query, as the host will see it |
| `body?` | `string` | `''` | - |
| `provider?` | [`CryptoProvider`](https://minca.dev/api/core/interfaces/CryptoProvider.md) | `...` | - |
| `at?` | `number` | `...` | - |

## Returns

`Promise`\<`string`\>
