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

@feathersjs/authentication-oauth2

Package Overview
Dependencies
Maintainers
4
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feathersjs/authentication-oauth2 - npm Package Compare versions

Comparing version 1.2.7 to 1.3.0

11

CHANGELOG.md

@@ -6,2 +6,13 @@ # Change Log

# [1.3.0](https://github.com/feathersjs/feathers/compare/@feathersjs/authentication-oauth2@1.2.7...@feathersjs/authentication-oauth2@1.3.0) (2019-01-06)
### Features
* Make custom query for oAuth authentication ([#1124](https://github.com/feathersjs/feathers/issues/1124)) ([5d43e3c](https://github.com/feathersjs/feathers/commit/5d43e3c))
## [1.2.7](https://github.com/feathersjs/feathers/compare/@feathersjs/authentication-oauth2@1.2.6...@feathersjs/authentication-oauth2@1.2.7) (2019-01-02)

@@ -8,0 +19,0 @@

9

lib/verifier.js

@@ -11,2 +11,6 @@ const Debug = require('debug');

options.makeQuery = options.makeQuery || function (profile, options) {
return { [options.idField]: profile.id }; // facebookId: profile.id
};
if (!this.service) {

@@ -81,6 +85,3 @@ throw new Error(`options.service does not exist.\n\tMake sure you are passing a valid service path or service instance and it is initialized before @feathersjs/authentication-oauth2.`);

const options = this.options;
const query = {
[options.idField]: profile.id, // facebookId: profile.id
$limit: 1
};
const query = Object.assign({}, options.makeQuery(profile, options), { $limit: 1 });
const data = { profile, accessToken, refreshToken };

@@ -87,0 +88,0 @@ let existing;

{
"name": "@feathersjs/authentication-oauth2",
"description": "An OAuth2 authentication strategy for feathers-authentication using Passport",
"version": "1.2.7",
"version": "1.3.0",
"homepage": "https://feathersjs.com",

@@ -56,3 +56,3 @@ "main": "lib/",

},
"gitHead": "8c3a740ada9c9a0a25204d72f8ce982ad2887331"
"gitHead": "563503497817563bccd5b288b70f73b91ac19900"
}
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