@feathersjs/authentication-oauth2
Advanced tools
Comparing version 1.2.7 to 1.3.0
@@ -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 @@ |
@@ -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" | ||
} |
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
32308