Using npm:
$ npm install @quiches/back --save
Using yarn:
$ yarn add @quiches/back
Usage
The private key is generated on the dashboard at : https://dashboard.quiches.ovh.
import QuichesStack from '@quiches/back';
const PRIVATE_KEY = 'priv_xxxxx';
const quiches = QuichesStack(PRIVATE_KEY);
const auth = quiches.auth;
// or
import { Authentication } from '@quiches/back';
const PRIVATE_KEY = 'priv_xxxxx';
const auth = new Authentication(PUBLIC_KEY);
The Authentication class has 3 available methods.