About
Bearer authorization token middleware for express.
Purpose?
This module will attempt to extract a bearer token from a request from this location:
- The value from the header
Authorization: Bearer <token>
.
If a token is found, it will be stored on req.token
. Otherwise, it will abort the request immediately by sending code 401.
const express = ;const bearerAuthorization = ;const app = ;const router = express; router app;app;
License
This project is licensed under the MIT License - see the LICENSE.md file for details