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

Struct EmptyStorage

internal/auth/empty/token.go:9–12  ·  view source on GitHub ↗

EmptyStorage is a no-operation implementation of the TokenStorage interface. It provides empty implementations for scenarios where token storage is not needed, such as when using API keys instead of OAuth tokens for authentication.

Source from the content-addressed store, hash-verified

7// It provides empty implementations for scenarios where token storage is not needed,
8// such as when using API keys instead of OAuth tokens for authentication.
9type EmptyStorage struct {
10 // Type indicates the authentication provider type, always "empty" for this implementation.
11 Type string `json:"type"`
12}
13
14// SaveTokenToFile is a no-operation implementation that always succeeds.
15// This method satisfies the TokenStorage interface but performs no actual file operations

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected