auth-token-header
v0.0.1
Published
Seneca module for storing auth token in header
Downloads
19
Readme
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"