New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

passport-oauth-wrap

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

passport-oauth-wrap - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

14

lib/strategy.js

@@ -73,3 +73,5 @@ /*jslint plusplus: true, devel: true, nomen: true, vars: true, node: true, indent: 4, maxerr: 50 */

Strategy.prototype.authenticate = function (req) {
var that = this;
var that = this,
refreshToken,
expiresIn;

@@ -98,9 +100,9 @@ function verified(err, user, info) {

if (that._passReqToCallback) {
that._verify(req, token, verified);
that._verify(req, token, verified, refreshToken, expiresIn);
} else {
that._verify(token, verified);
that._verify(token, verified, refreshToken, expiresIn);
}
}
this._getRawToken(req, function (rawToken) {
this._getRawToken(req, function (rawToken, refrTkn, expIn) {
if (!rawToken) {

@@ -110,2 +112,4 @@ return that.fail(that._challenge());

var idx = rawToken.indexOf("&HMACSHA256=");
refreshToken = refrTkn;
expiresIn = expIn;
if (idx !== -1) {

@@ -260,3 +264,3 @@ that._validateSWT(rawToken, idx, verify);

var pRes = queryString.parse(result);
callback(pRes.wrap_access_token);
callback(pRes.wrap_access_token, pRes.wrap_refresh_token, pRes.wrap_access_token_expires_in);
});

@@ -263,0 +267,0 @@ } else {

@@ -13,3 +13,3 @@ {

],
"version": "0.1.1",
"version": "0.1.2",
"main": "./lib",

@@ -16,0 +16,0 @@ "dependencies": {

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