getoken

0.1.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i getoken

Weekly Downloads

4

Version

0.1.0

License

MIT

Unpacked Size

2.33 kB

Total Files

4

Last publish

Collaborators

  • elrumordelaluz