# withSecretVault

- Module: [CommunityToolkit.Aspire.Hosting.Logto](/reference/api/typescript/communitytoolkit.aspire.hosting.logto.md)
- Version: `13.5.0`
- Kind: `method`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/4ff8268fbd97ddd23cb73dc8eff9cc92718156d1)

Configures the Logto resource to use a secret vault with the specified key encryption key (KEK).

## Definition

```typescript
interface LogtoResource {
  // ... omitted for brevity
  withSecretVault(secretVaultKek: string): LogtoResource
}
```

## Parameters

- `secretVaultKek` (`string`)

## Returns

[LogtoResource](/reference/api/typescript/communitytoolkit.aspire.hosting.logto/logtoresource.md) `builder`

## Applies to

- [LogtoResource](/reference/api/typescript/communitytoolkit.aspire.hosting.logto/logtoresource.md)
