# withBitwardenReferenceAuthCacheVolume

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

Mounts a named volume and configures the Bitwarden SDK to store its auth cache there, for the connection associated with `source`. Use this for container resources. For process resources or when the container path is already known, use `WithBitwardenAuthCacheDirectory``1` instead.

## Definition

```typescript
interface ContainerResource {
  // ... omitted for brevity
  withBitwardenReferenceAuthCacheVolume(
    source: BitwardenSecretManagerResource,
    volumeName?: string,
    containerDirectory?: string): IResourceWithEnvironment
}
```

## Parameters

- `source` ([BitwardenSecretManagerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.bitwarden.secretmanager/bitwardensecretmanagerresource.md))
- `volumeName` (`string`) `optional`
- `containerDirectory` (`string`) `optional` `= /var/lib/bitwarden`

## Returns

`IResourceWithEnvironment` `builder`

## Applies to

- [ContainerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.bitwarden.secretmanager/containerresource.md)
- [ExecutableResource](/reference/api/typescript/communitytoolkit.aspire.hosting.bitwarden.secretmanager/executableresource.md)
- [ProjectResource](/reference/api/typescript/communitytoolkit.aspire.hosting.bitwarden.secretmanager/projectresource.md)
- [DotnetToolResource](/reference/api/typescript/communitytoolkit.aspire.hosting.bitwarden.secretmanager/dotnettoolresource.md)
- [CSharpAppResource](/reference/api/typescript/communitytoolkit.aspire.hosting.bitwarden.secretmanager/csharpappresource.md)
