MCPcopy Create free account
hub / github.com/subquery/subql / reqInput

Function reqInput

packages/cli/src/utils/utils.ts:58–58  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

56
57export async function checkToken(token_path: string = ACCESS_TOKEN_PATH): Promise<string> {
58 const reqInput = () => input({message: 'Token cannot be found, Enter token', required: true});
59
60 const envToken = process.env.SUBQL_ACCESS_TOKEN;
61 if (envToken) return envToken;

Callers 1

checkTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected