Authenticate with epilot APIs
npm install --save @epilot/auth
import { authorizeWithToken } from '@epilot/auth';
import entityClient from '@epilot/entity-client';
authorizeWithToken(entityClient, '<my_access_token>');
For convenience, you can quickly obtain a token for testing via the CLI
$ npx @epilot/auth
? Email email@example.com
? Password [hidden]
# <access token printed here>