apier-authenticator

Check if the user making a request is authenticated.

Usage no npm install needed!

<script type="module">
  import apierAuthenticator from 'https://cdn.skypack.dev/apier-authenticator';
</script>

README

apier-authenticator Build Status

Part of the apier framework

Checks if the user making a request is authenticated.
It takes the token, found in req.requestData.token (placed there by apier-dataParser)
checks if that token corresponds to a valid session and loads the user that logged in and was assigned that token.

It is mainly used by apier-permissioner

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install apier-authenticator --save

Dependencies

  • es6-promise: A lightweight library that provides tools for organizing asynchronous code
  • reqlog: A simple Node.js logger. Very closely attached to a request.

Dev Dependencies

License

MIT

Generated by package-json-to-readme