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

Interface TokenStorage

internal/auth/models.go:8–17  ·  view source on GitHub ↗

TokenStorage defines the interface for storing authentication tokens. Implementations of this interface should provide methods to persist authentication tokens to a file system location.

Source from the content-addressed store, hash-verified

6// Implementations of this interface should provide methods to persist
7// authentication tokens to a file system location.
8type TokenStorage interface {
9 // SaveTokenToFile persists authentication tokens to the specified file path.
10 //
11 // Parameters:
12 // - authFilePath: The file path where the authentication tokens should be saved
13 //
14 // Returns:
15 // - error: An error if the save operation fails, nil otherwise
16 SaveTokenToFile(authFilePath string) error
17}

Callers 4

SaveMethod · 0.65
SaveMethod · 0.65
SaveMethod · 0.65
SaveMethod · 0.65

Implementers 9

memoryAuthStorageinternal/pluginhost/auth_callbacks_tes
pluginTokenStorageinternal/pluginhost/auth_provider.go
TokenStorageinternal/auth/xai/token.go
VertexCredentialStorageinternal/auth/vertex/vertex_credential
CodexTokenStorageinternal/auth/codex/token.go
EmptyStorageinternal/auth/empty/token.go
ClaudeTokenStorageinternal/auth/claude/token.go
KimiTokenStorageinternal/auth/kimi/token.go
testTokenStoragesdk/auth/filestore_disabled_test.go

Calls

no outgoing calls

Tested by

no test coverage detected