MCPcopy Create free account
hub / github.com/instantdb/instant / readConfigAuthTokenWithErrorLogging

Function readConfigAuthTokenWithErrorLogging

client/packages/cli/src/old.js:486–494  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

484}
485
486export async function readConfigAuthTokenWithErrorLogging() {
487 const token = await readConfigAuthToken();
488 if (!token) {
489 error(
490 `Looks like you are not logged in. Please log in with ${chalk.green('`instant-cli login`')}`,
491 );
492 }
493 return token;
494}
495
496// utils
497

Callers 1

fetchJsonFunction · 0.85

Calls 2

readConfigAuthTokenFunction · 0.85
errorFunction · 0.70

Tested by

no test coverage detected