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

passport-token-google

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-token-google - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

7

lib/strategy.js

@@ -73,8 +73,5 @@ /**

if (!req.body) {
return this.fail();
}
var accessToken = req.body ? req.body.access_token || req.query.access_token || req.headers.access_token : req.headers.access_token || req.query.access_token;
var refreshToken = req.body ? req.body.refresh_token || req.query.refresh_token || req.headers.refresh_token : req.headers.refresh_token || req.query.refresh_token;
var accessToken = req.body.access_token || req.query.access_token || req.headers.access_token;
var refreshToken = req.body.refresh_token || req.query.refresh_token || req.headers.refresh_token;

@@ -81,0 +78,0 @@ self._loadUserProfile(accessToken, function(err, profile) {

{
"name": "passport-token-google",
"version": "0.1.1",
"version": "0.1.2",
"description": "Google token authentication strategy for Passport.",

@@ -5,0 +5,0 @@ "author": {

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