1.1.0 • Published 1 year ago

formant-authentication v1.1.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

#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);
1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago