0.4.2 • Published 9 years ago

basic-auth-token v0.4.2

Weekly downloads
4,044
License
MIT
Repository
github
Last release
9 years ago

basic-auth-token

Token generated by concatenating username and password with : character within a base64 encoded string.

Build Status Code Climate js-standard-style

npm install basic-auth-token --save
npm stats

npm NPM downloads Dependency Status

Example

var token = require('basic-auth-token');
token("Aladdin", "open sesame")
//=> QWxhZGRpbjpvcGVuIHNlc2FtZQ==

API

token(user, pass)

arguments
  • user: (String) username.
  • pass: (String) password.
returns
  • (String) token.

Reference

Notes

If you want the full RFC2617 authorization header value, check out basic-authorization-header.

Licenses

GitHub license

0.4.2

9 years ago

0.4.1

9 years ago

0.4.0

9 years ago

0.3.1

9 years ago

0.3.0

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago