Socket
Socket
Sign inDemoInstall

@feathersjs/authentication-oauth1

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feathersjs/authentication-oauth1 - npm Package Compare versions

Comparing version 1.0.10 to 1.1.0

11

CHANGELOG.md

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

# [1.1.0](https://github.com/feathersjs/feathers/compare/@feathersjs/authentication-oauth1@1.0.10...@feathersjs/authentication-oauth1@1.1.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.0.10](https://github.com/feathersjs/feathers/compare/@feathersjs/authentication-oauth1@1.0.9...@feathersjs/authentication-oauth1@1.0.10) (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) {

@@ -75,6 +79,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-oauth1.`);

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 };

@@ -81,0 +82,0 @@ let existing;

{
"name": "@feathersjs/authentication-oauth1",
"description": "A Feathers OAuth1 authentication strategy",
"version": "1.0.10",
"version": "1.1.0",
"homepage": "https://feathersjs.com",

@@ -57,3 +57,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