# withBitwardenReferenceAuthCacheDirectory

- 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)

Configures the directory where the Bitwarden SDK stores its auth cache inside the resource, for the connection associated with `source`.

## Definition

```typescript
interface ContainerResource {
  // ... omitted for brevity
  withBitwardenReferenceAuthCacheDirectory(
    source: BitwardenSecretManagerResource,
    authCacheDirectory: string): IResourceWithEnvironment
}
```

## Parameters

- `source` ([BitwardenSecretManagerResource](/reference/api/typescript/communitytoolkit.aspire.hosting.bitwarden.secretmanager/bitwardensecretmanagerresource.md))
- `authCacheDirectory` (`string`)

## 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)
