# Function: generateRecoveryCode()

```ts
function generateRecoveryCode(): string;
```

Defined in: [packages/core/src/identity/recovery-code.ts:33](https://github.com/leifriksheim/minca/blob/main/core/src/identity/recovery-code.ts#L33)

Generates a fresh recovery code.

## Returns

`string`
