# WithBitwardenReferenceAuthCacheDirectory

- Module: [CommunityToolkit.Aspire.Hosting.Bitwarden.SecretManager](/reference/api/go/communitytoolkit.aspire.hosting.bitwarden.secretmanager.md)
- Version: `13.6.1`
- Kind: `method`
- Defined on: `ResourceWithEnvironment`
- Source: [GitHub](https://github.com/CommunityToolkit/Aspire/tree/d9c2addac6f527ef2e33712d290b84574b455a3b)

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

## Definition

```go
func (ResourceWithEnvironment) WithBitwardenReferenceAuthCacheDirectory(
    source BitwardenSecretManagerResource,
    authCacheDirectory string,
) ResourceWithEnvironment
```

## Parameters

- `source` ([`BitwardenSecretManagerResource`](/reference/api/go/communitytoolkit.aspire.hosting.bitwarden.secretmanager/bitwardensecretmanagerresource.md)) -- The Bitwarden resource whose connection name to target.
- `authCacheDirectory` (`string`) -- The directory path inside the app where the auth cache file is stored.

## Returns

`ResourceWithEnvironment` -- The destination resource builder.

Returns a handle; failures surface later via `Err()`.

## Applies to

- `CSharpAppResource`
- `ContainerResource`
- `DotnetToolResource`
- `ExecutableResource`
- `ProjectResource`
