MCPcopy Create free account
hub / github.com/CommandCodeAI/BaseAI / handleAuthError

Function handleAuthError

packages/baseai/src/utils/retrieve-credentials.ts:17–26  ·  view source on GitHub ↗
({
	spinner,
	error
}: {
	spinner: Spinner;
	error: unknown;
})

Source from the content-addressed store, hash-verified

15 p.log.info(`Run: ${color.green('npx baseai auth')}`);
16}
17function handleAuthError({
18 spinner,
19 error
20}: {
21 spinner: Spinner;
22 error: unknown;
23}): void {
24 spinner.stop('Failed to retrieve authentication');
25 p.log.error(`Error retrieving stored auth: ${(error as Error).message}`);
26}
27
28export async function retrieveAuthentication({
29 spinner

Callers 1

retrieveAuthenticationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected