0.0.1 • Published 9 years ago

auth-token-header v0.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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"