exported.go

 1//go:build go1.18
 2// +build go1.18
 3
 4// Copyright (c) Microsoft Corporation. All rights reserved.
 5// Licensed under the MIT License.
 6
 7package internal
 8
 9// TokenCachePersistenceOptions contains options for persistent token caching
10type TokenCachePersistenceOptions struct {
11	// AllowUnencryptedStorage controls whether the cache should fall back to storing its data in plain text
12	// when encryption isn't possible. Setting this true doesn't disable encryption. The cache always attempts
13	// encryption before falling back to plaintext storage.
14	AllowUnencryptedStorage bool
15
16	// Name identifies the cache. Set this to isolate data from other applications.
17	Name string
18}