Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hapi-auth-bearer-simple

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hapi-auth-bearer-simple - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

2

lib/index.js

@@ -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).
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc