MCPcopy Create free account
hub / github.com/CodeGraphContext/CodeGraphContext / getAuthTokenKey

Function getAuthTokenKey

website/src/lib/repo-provider.ts:139–141  ·  view source on GitHub ↗
(ref: RepoRef)

Source from the content-addressed store, hash-verified

137}
138
139export function getAuthTokenKey(ref: RepoRef): string {
140 return ref.provider === "gitlab" ? "gitlab_pat" : "github_pat";
141}
142
143export function getAuthHeaders(ref: RepoRef): Record<string, string> {
144 const token = localStorage.getItem(getAuthTokenKey(ref));

Callers 4

ExploreFunction · 0.90
fetchRepositoryFilesFunction · 0.90
getAuthHeadersFunction · 0.85
getAuthenticatedZipUrlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected