Skip to main content



The epilot application uses standard OAuth 2.0 to authenticate.

Quick Start

You can login to obtain a token for testing epilot APIs quickly via the command line. (Requires Node.js)

$ npx @epilot/auth

? Email
? Password [hidden]

# <access token printed here>

OAuth tokens expire after a short period (60 min) and must be refreshed using a refresh token.

For integration purposes we recommend using long term Access Tokens.

import { authorizeWithToken } from '@epilot/auth'
import entityClient from '@epilot/entity-client'

authorizeWithToken(entityClient, '<my_access_token>')

// you can now use entity client

Cognito User Pools

Each epilot tenant gets their own Cognito User Pool for login.

Cognito also provides SSO and MFA functionality, configurable via Organisation Settings in epilot.

User API

The epilot user API provides functionality to invite and manage users in epilot organisations.

The Cognito sync service part of the User API takes care of managing users in each User Pool.

Login with SDK

While we recommend using Access Tokens, you can also authenticate with your username and password using the the SDK:

npm install --save @epilot/auth
import { authenticate } from '@epilot/auth'
import entityClient from '@epilot/entity-client'

const credentials = await authenticate({
username: '',
password: 'xxx',

// entityClient is now authorized with epilot OAuth2 tokens