# LogtoResource.withSecretVault

- Module: [CommunityToolkit.Aspire.Hosting.Logto](/reference/api/typescript/communitytoolkit.aspire.hosting.logto.md)
- Defined on: [LogtoResource](/reference/api/typescript/communitytoolkit.aspire.hosting.logto/logtoresource.md)
- Version: `13.5.0`
- Kind: `method`

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;
}
```

## Signature

```typescript
withSecretVault(secretVaultKek: string): LogtoResource
```

## Parameters

- `secretVaultKek` (`string`)

## Returns

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

## Defined on

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