@feathersjs/authentication-oauth1
Advanced tools
Comparing version 1.0.10 to 1.1.0
@@ -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 @@ |
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
24572