@passport-next/passport-facebook
Advanced tools
Comparing version 2.4.0 to 2.5.0
@@ -0,1 +1,7 @@ | ||
# 2.5.0 (2018-07-07) | ||
* Added profile mappings for hometown and currentLocation @rmacqueen | ||
* Added profile mappings for ageRange @mhverbakel | ||
* Updated README.md @askmike @WeiChienHsu | ||
# 2.4.0 (2018-06-29) | ||
@@ -2,0 +8,0 @@ |
@@ -23,2 +23,3 @@ /** | ||
profile.profileUrl = json.link; | ||
profile.ageRange = json.age_range; | ||
@@ -25,0 +26,0 @@ if (json.email) { |
@@ -223,3 +223,6 @@ // Load modules. | ||
'emails': 'email', | ||
'photos': 'picture' | ||
'photos': 'picture', | ||
'ageRange': 'age_range', | ||
'currentLocation': 'location', | ||
'hometown': 'hometown' | ||
}; | ||
@@ -226,0 +229,0 @@ |
{ | ||
"name": "@passport-next/passport-facebook", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "Facebook authentication strategy for Passport.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -89,7 +89,9 @@ # passport-facebook | ||
If you need additional permissions from the user, the permissions can be | ||
requested via the `scope` option to `passport.authenticate()`. | ||
requested via the `scope` option to the Strategy. | ||
```js | ||
app.get('/auth/facebook', | ||
passport.authenticate('facebook', { scope: ['user_friends', 'manage_pages'] })); | ||
passport.use(new FacebookStrategy({ | ||
scope: ['user_photos'], | ||
(...) | ||
``` | ||
@@ -102,7 +104,7 @@ | ||
Set the `authType` option to `rerequest` when authenticating. | ||
Set the `authType` option to `reauthenticate` when authenticating. | ||
```js | ||
app.get('/auth/facebook', | ||
passport.authenticate('facebook', { authType: 'rerequest', scope: ['user_friends', 'manage_pages'] })); | ||
passport.authenticate('facebook', { authType: 'reauthenticate', scope: ['user_friends', 'manage_pages'] })); | ||
``` | ||
@@ -109,0 +111,0 @@ |
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
21315
349
193