getoken
v0.1.0
Published
Get token from Request
Downloads
10
Readme
get-token
Get token from Request
Install
$ yarn add get-token
Usage
const getToken = require('get-token')
app.post((req, res, next) => {
req.token = getToken(req)
next()
}, …)
API
getToken(req)
req
Type: object
Request Object