auth-token-header

0.0.1 • Public • Published

seneca-auth-token-header

Seneca plugin for storing auth token in the header.

This plugin is used by seneca-auth

For a gentle introduction to Seneca itself, see the senecajs.org site.

Install

npm install seneca-auth-token-header

Using header plugin

When using seneca-auth the token-header:

..........
seneca.use('auth')
seneca.use('auth-token-header', options)
..........

Options

The only option for this plugin is the name of the token to be set in the HTTP response

  • tokenkey - the default value is "X-Auth-Token"

Package Sidebar

Install

npm i auth-token-header

Weekly Downloads

3

Version

0.0.1

License

MIT

Last publish

Collaborators

  • malex