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

oniyi-http-plugin-credentials

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oniyi-http-plugin-credentials - npm Package Compare versions

Comparing version 0.0.2 to 0.1.0

4

lib/index.js

@@ -5,3 +5,3 @@ 'use strict';

const passport = require('passport');
const logger = require('oniyi-logger')('http-client:plugins:attach-credentials');
const logger = require('oniyi-logger')('oniyi:http-client:plugin:attach-credentials');

@@ -15,2 +15,3 @@

const params = { grant_type: 'refresh_token' };
// eslint-disable-next-line no-underscore-dangle
strategy._oauth2.getOAuthAccessToken(currentCredentials.refreshToken, params,

@@ -86,2 +87,3 @@ (err, accessToken, refreshToken, respParams) => {

// load the passport-strategy instance from passport
// eslint-disable-next-line no-underscore-dangle
const strategy = passport._strategy(options.providerName);

@@ -88,0 +90,0 @@ if (!strategy) {

{
"name": "oniyi-http-plugin-credentials",
"version": "0.0.2",
"version": "0.1.0",
"description": "A plugin for oniyi-http-client for automatic attachment of user credentials",

@@ -27,9 +27,10 @@ "homepage": "",

"lodash": "^4.10.0",
"oniyi-logger": "^0.4.2",
"oniyi-logger": "^1.0.0",
"passport": "^0.3.2"
},
"devDependencies": {
"eslint": "^2.7.0",
"eslint-config-oniyi": "^2.0.2",
"eslint": "^3.5.0",
"eslint-config-oniyi": "^4.2.0",
"gulp": "^3.9.1",
"gulp-coveralls": "^0.1.4",
"gulp-eslint": "^2.0.0",

@@ -39,5 +40,5 @@ "gulp-exclude-gitignore": "^1.0.0",

"gulp-mocha": "^2.2.0",
"gulp-nsp": "^2.4.0",
"gulp-plumber": "^1.1.0",
"gulp-nsp": "^2.4.0",
"gulp-coveralls": "^0.1.4"
"lodash": "^4.15.0"
},

@@ -44,0 +45,0 @@ "repository": "benkroeger/oniyi-http-plugin-credentials",

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