()
| 56 | |
| 57 | export 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; |