formant-authentication

1.1.0 • Public • Published

#Formant Authentication Module

Installation

  • npm i formant-authentication

Add .env with the following variables

  • FORMANT_API_URL=https://api.formant.io
  • FORMANT_EMAIL=
  • FORMANT_PASSWORD=
  • FORMANT_REFRESH_TOKEN=
  • FORMANT_REFRESH_TOKEN_EXPIRATION=0

Use: connected()

  • import * as FormantAuth from "formant-authentication"
  • const connected = await FormantAuth.connect()

Use: expressModule()

  • import express from "express";
  • import * as FormantAuth from "formant-authentication"
  • const router = express.Router();
  • router.use(FormantAuth.expressModule);

Package Sidebar

Install

npm i formant-authentication

Weekly Downloads

0

Version

1.1.0

License

ISC

Unpacked Size

14.4 kB

Total Files

4

Last publish

Collaborators

  • subant05