header_accesstoken
v1.0.1
Published
Get accesstoken from http request header
Downloads
1
Readme
Get access token from HTTP header
Get x-access-token
or authorization
token from HTTP header
const express = require('express');
const app = express();
const { getAccessToken } = require('header_accesstoken');
app.post('/test/headertoken', (req, res) => {
let token = getAccessToken(req);
if(token ==='foobar'){
// TADA
}
}