Skip to content

Latest commit

 

History

History
71 lines (46 loc) · 1.93 KB

README.md

File metadata and controls

71 lines (46 loc) · 1.93 KB

Seneca

A Seneca.js plugin for storing auth token in the header.

npm version Build Status Dependency Status Gitter chat

  • 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.

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"

Test

To run tests, simply use npm:

npm run test

Contributing

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.

License

Copyright (c) Mircea Alexandru and other contributors 2015, Licensed under MIT.