()
| 484 | } |
| 485 | |
| 486 | export 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 |
no test coverage detected