MCPcopy
hub / github.com/upstash/context7 / getAccessToken

Function getAccessToken

packages/cli/src/commands/docs.ts:21–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

19}
20
21function getAccessToken(): string | undefined {
22 const tokens = loadTokens();
23 if (!tokens || isTokenExpired(tokens)) return undefined;
24 return tokens.access_token;
25}
26
27function formatLibraryResult(lib: LibrarySearchResult, index: number): string {
28 const lines: string[] = [];

Callers 2

resolveCommandFunction · 0.85
queryCommandFunction · 0.85

Calls 2

loadTokensFunction · 0.85
isTokenExpiredFunction · 0.85

Tested by

no test coverage detected