@fortmatic/admin
v3.0.0
Published
Fortmatic Javascript Admin SDK
Downloads
40
Maintainers
Keywords
Readme
Fortmatic Admin Javascript SDK
Fortmatic Admin JavaScript SDK lets developers secure endpoints in their Express-based NodeJS application via easy-to-use middleware.
Documentation
See the Developer Documentation.
Installation
Integrating your NodeJS application with Fortmatic Auth will require our NPM package:
npm install --save @fortmatic/admin
Usage
Sign up or log in to your Developer Dashboard to receive API keys.
const Fortmatic = require('@fortmatic/admin');
// Create a Fortmatic Admin instance
const fm = new Fortmatic(‘YOUR_DEVELOPER_SECRET_KEY’);
// Apply middleware
app.use(fortmatic.middlewares.express);