MCPcopy Index your code
hub / github.com/CodebuffAI/codebuff / getAuthToken

Function getAuthToken

cli/src/utils/auth.ts:134–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

132 * Get the auth token from user credentials or environment variable
133 */
134export const getAuthToken = (): string | undefined => {
135 return getAuthTokenDetails().token
136}
137
138/**
139 * Check if the user has authentication credentials (but doesn't validate them)

Callers 9

mainFunction · 0.90
handleUsageCommandFunction · 0.90
useSubscriptionQueryFunction · 0.90
recordLocalImpressionFunction · 0.90
recordClickFunction · 0.90
fetchAdFunction · 0.90
useUsageQueryFunction · 0.90
useUsageMonitorFunction · 0.90
useUserDetailsQueryFunction · 0.90

Calls 1

getAuthTokenDetailsFunction · 0.85

Tested by

no test coverage detected