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

@passport-next/passport-facebook

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@passport-next/passport-facebook - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0

6

CHANGELOG.md

@@ -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 @@

1

lib/profile.js

@@ -23,2 +23,3 @@ /**

profile.profileUrl = json.link;
profile.ageRange = json.age_range;

@@ -25,0 +26,0 @@ if (json.email) {

5

lib/strategy.js

@@ -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 @@

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