Skip to content
TypeScript JavaScript
Branch: master
Clone or download
Latest commit 6636471 Dec 14, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/workflows Initial Open Source Commit Dec 13, 2019
src Initial Open Source Commit Dec 13, 2019
.gitignore Initial Open Source Commit Dec 13, 2019
.prettierrc.json Initial Open Source Commit Dec 13, 2019
README.md docs: add README Dec 13, 2019
jest.config.js Initial Open Source Commit Dec 13, 2019
junit.xml
package.json
tsconfig.json build: ship type definitions Dec 14, 2019
yarn.lock

README.md

@continuous-auth/client

GitHub Workflow Status GitHub Workflow Status

This module expects to be run in a Supported CI Environment. It infers a lot of variables from environment variables, these config variables are outlined below.

Config

  • CFA_PROJECT_ID - The ID of your project on CFA
  • CFA_SECRET - The secret assoicated with your project on CFA, you get this from the CFA Dashboard

API

getOtp()

Returns Promise<string>.

This promise eventually resolves with a valid OTP code, please be aware that this code is user provided and therefore may have been entered incorrectly. You also need to use OTP codes quite quickly as they typically expire within 30 seconds.

Example

// Publish the package in the CWD with an OTP code from CFA
import { getOtp } from '@continuous-auth/client';
import { spawnSync } from 'child_process';

spawnSync('npm', ['publish', '--otp', await getOtp()])
You can’t perform that action at this time.