From 34573c79eeea8fe5f3d1b800b2191bdd96976a7c Mon Sep 17 00:00:00 2001 From: Luis Rudge Date: Thu, 15 Jun 2017 11:21:02 -0300 Subject: [PATCH] Fix custom connection scopes --- src/core/web_api/helper.js | 2 +- src/quick-auth/actions.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/web_api/helper.js b/src/core/web_api/helper.js index bf2a28da1..eb742393c 100644 --- a/src/core/web_api/helper.js +++ b/src/core/web_api/helper.js @@ -110,7 +110,7 @@ export function loginCallback(redirect, cb) { : (error, result) => cb(normalizeError(error), result); } -export function normalizeAuthParams({ connection_scope, popup, popupOptions, ...authParams }) { +export function normalizeAuthParams({ popup, popupOptions, ...authParams }) { return authParams; } diff --git a/src/quick-auth/actions.js b/src/quick-auth/actions.js index 1d91be485..51fea701b 100644 --- a/src/quick-auth/actions.js +++ b/src/quick-auth/actions.js @@ -13,7 +13,7 @@ export function logIn(id, connection, loginHint) { const scopes = connectionScopes.get(connection.get('name')); const params = { connection: connection.get('name'), - connection_scope: scopes ? scopes.toJS() : [] + connection_scope: scopes ? scopes.toJS() : undefined }; if (!l.auth.redirect(m) && connection.get('strategy') === 'facebook') {