mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
* Fix #10428 facebook permissions 🛂 * Add missing semicolon in tools/upgraders.js
This commit is contained in:
@@ -5,8 +5,7 @@ Facebook.handleAuthFromAccessToken = (accessToken, expiresAt) => {
|
||||
// include basic fields from facebook
|
||||
// https://developers.facebook.com/docs/facebook-login/permissions/
|
||||
const whitelisted = ['id', 'email', 'name', 'first_name', 'last_name',
|
||||
'middle_name', 'name_format', 'picture', 'short_name', 'age_range',
|
||||
'birthday', 'friends', 'gender', 'hometown', 'link', 'location', 'locale'];
|
||||
'middle_name', 'name_format', 'picture', 'short_name'];
|
||||
|
||||
const identity = getIdentity(accessToken, whitelisted);
|
||||
|
||||
|
||||
@@ -277,7 +277,7 @@ be removed if there is no need for the Blaze configuration interface.`,
|
||||
|
||||
// If `<service>`, it changes to `<service>-oauth`
|
||||
if (packagesFile.getConstraint(service)) {
|
||||
packagesFile.removePackages([service])
|
||||
packagesFile.removePackages([service]);
|
||||
packagesFile.addPackages([`${service}-oauth`]);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user