MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / FileTokenStore

Struct FileTokenStore

sdk/auth/filestore.go:56–60  ·  view source on GitHub ↗

FileTokenStore persists token records and auth metadata using the filesystem as backing storage.

Source from the content-addressed store, hash-verified

54
55// FileTokenStore persists token records and auth metadata using the filesystem as backing storage.
56type FileTokenStore struct {
57 mu sync.Mutex
58 dirLock sync.RWMutex
59 baseDir string
60}
61
62// NewFileTokenStore creates a token store that saves credentials to disk through the
63// TokenStorage implementation embedded in the token record.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected