Socket
Socket
Sign inDemoInstall

passport-linkedin-oauth2

Package Overview
Dependencies
7
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.6.0 to 1.6.1

2

lib/oauth2.js

@@ -68,3 +68,3 @@ var util = require('util'),

const profileUrl = getProfileUrl(this.scope, this.profileFields, ['public-profile-url']);
this._oauth2.get(profileUrl, accessToken, (err, body, res) => {
return this._oauth2.get(profileUrl, accessToken, (err, body, res) => {
if(err) {

@@ -71,0 +71,0 @@ return done(new InternalOAuthError('failed to fetch user profile', err));

{
"name": "passport-linkedin-oauth2",
"version": "1.6.0",
"version": "1.6.1",
"description": "Passport for LinkedIn Oauth2",

@@ -5,0 +5,0 @@ "main": "./lib",

@@ -367,3 +367,15 @@ var assert = require("assert");

// See: https://github.com/auth0/passport-linkedin-oauth2/pull/70
it('it calls callback only once when get profile fails the first time', function(done) {
const { strategy, getStub } = createStrategy();
getStub.onFirstCall().callsArgWith(2, new Error('test'));
getStub.onSecondCall().callsArgWith(2, null, jsonBody);
strategy.userProfile('token', (err, profile) => {
done();
});
});
});
});
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc