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

Function setApiClientAuthToken

cli/src/utils/codebuff-api.ts:585–590  ·  view source on GitHub ↗
(authToken: string | undefined)

Source from the content-addressed store, hash-verified

583 * with the updated token.
584 */
585export function setApiClientAuthToken(authToken: string | undefined): void {
586 sharedAuthToken = authToken
587 // Note: We don't eagerly invalidate the client here. Instead, getApiClient()
588 // checks if the token has changed and recreates the client if needed.
589 // This avoids race conditions where the client is nullified but not yet recreated.
590}
591
592/**
593 * Reset the shared client (mainly for testing)

Callers 4

mainFunction · 0.90
logoutUserFunction · 0.90
publishAgentTemplatesFunction · 0.90
fetchUserDetailsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected