@midware/mauth
TypeScript icon, indicating that this package has built-in type declarations

0.2.18 • Public • Published

MAuth

Publish npm version npm downloads

Authentication and Authorization Middleware

Installation

This is a Node.js module available through the npm registry.

Before installing, download and install Node.js.

If this is a brand new project, make sure to create a package.json first with the npm init command or yarn init command.

Installation is done using the npm install command or yarn add command:

$ npm install @midware/mauth

or

$ yarn add @midware/mauth

Features

  • Ready to use authorization middleware
  • Ready to use authentication middleware
  • Simple implementation

Tests

To run the test suite, first install the dependencies, then run npm test:

$ npm install
$ npm test

or

$ yarn
$ yarn test

Environment Variables:

GOOGLE_CLIENT_ID = Google Client Id AUTH_HOST = Auth host URL to get keys JWT_PRIVATE_KEY = RSA Private Key to generate JWT JWT_PUBLIC_KEY = RSA Public Key to get JWT SERVICE_NAME = Credential id to connect to Auth host SERVICE_KEY = Credential KEY to connect to Auth host SERVICE_NAME = Project name INSTANCE = Project instance name

People

The original author of MAuth is Judah Lima

List of all contributors

Package Sidebar

Install

npm i @midware/mauth

Weekly Downloads

35

Version

0.2.18

License

BSD-3-Clause

Unpacked Size

81.1 kB

Total Files

100

Last publish

Collaborators

  • judahh