hapi-auth-bearer-simple
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -20,3 +20,3 @@ 'use strict'; | ||
if (!isValid) { | ||
return reply(Boom.unauthorized('INVALID_AUTHORIZATION', 'bearerAuth', { | ||
return reply(Boom.unauthorized(null, 'bearerAuth', { | ||
isValid: isValid, | ||
@@ -23,0 +23,0 @@ credentials: credentials |
{ | ||
"name": "hapi-auth-bearer-simple", | ||
"description": "Custom authentication plugin for Hapi using Bearer tokens", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"author": "Adri Van Houdt <adri@salesflare.com>", | ||
@@ -6,0 +6,0 @@ "private": false, |
@@ -66,4 +66,4 @@ ![Build Status](https://travis-ci.org/Salesflare/hapi-auth-bearer-simple.svg?branch=master) ![](https://david-dm.org/salesflare/hapi-auth-bearer-simple.svg) ![](https://david-dm.org/salesflare/hapi-auth-bearer-simple/dev-status.svg) ![](https://david-dm.org/salesflare/hapi-auth-bearer-simple/peer-status.svg) | ||
- 100% code coverage! | ||
- You can chain strategies when you give no `error` and `isValid = true` but leave the `credentials` empty. | ||
- You can chain strategies see http://hapijs.com/api#serverauthschemename-scheme. | ||
- If you have any problems and/or questions make a new [**issue**](https://github.com/Salesflare/hapi-auth-bearer-simple/issues). | ||
- If you want to contribute feel free to fork and add a pull request or again make an [**issue**](https://github.com/Salesflare/hapi-auth-bearer-simple/issues). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
18941