MCPcopy
hub / github.com/inkeep/open-knowledge / TokenStore

Interface TokenStore

packages/cli/src/auth/token-store.ts:14–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

12}
13
14export interface TokenStore {
15 readonly backend: 'keyring' | 'file';
16 get(host: string): Promise<TokenEntry | null>;
17 set(
18 host: string,
19 login: string,
20 token: string,
21 extra?: Pick<TokenEntry, 'gitProtocol' | 'name' | 'email'>,
22 ): Promise<void>;
23 clear(host: string): Promise<void>;
24}
25
26const KEYRING_SERVICE = 'open-knowledge';
27

Callers 24

handleCreateFunction · 0.65
handleInputFunction · 0.65
handleResizeFunction · 0.65
handleKillFunction · 0.65
handlePauseFunction · 0.65
handleResumeFunction · 0.65
invokeFunction · 0.65
bindSenderFunction · 0.65
handleCreateFunction · 0.65
handleFunction · 0.65
registerIpcHandlersFunction · 0.65
ensureHandleFunction · 0.65

Implementers 5

KeyringBackendpackages/cli/src/auth/token-store.ts
FileBackendpackages/cli/src/auth/token-store.ts
KeychainWithFileFallbackpackages/cli/src/auth/token-store.ts
LruStringCachepackages/app/src/lib/lru-string-cache.
FileEmbeddingsBackendpackages/server/src/embeddings/secrets

Calls

no outgoing calls

Tested by

no test coverage detected