A Seneca.js plugin for storing auth token in the header.
- Version: 0.0.1
- Tested on: Seneca 0.8, 0.9
- Node: 4, 5
- License: MIT
Lead Maintainer: Mircea Alexandru
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.
npm install seneca-auth-token-header
When using seneca-auth the token-header:
seneca.use('auth')
seneca.use('auth-token-header', 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"
To run tests, simply use npm:
npm run test
The Senecajs org encourage open participation. If you feel you can help in any way, be it with documentation, examples, extra testing, or new features please get in touch.
Copyright (c) Mircea Alexandru and other contributors 2015, Licensed under MIT.