From 8deb979c824d66879b2c93511fb169a5451d1277 Mon Sep 17 00:00:00 2001 From: Andreas Date: Sun, 10 Sep 2017 22:04:52 +0200 Subject: [PATCH] Fix for variable name, client_id --- src/utils/API.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/utils/API.js b/src/utils/API.js index 193180b..989d91a 100644 --- a/src/utils/API.js +++ b/src/utils/API.js @@ -84,7 +84,7 @@ const API = { // console.error("About to authentication", JSON.stringify(config, undefined, 3)) const jsoconfig = { providerID: "oauthPlay", - client_id: config.clientId, + client_id: config.client_id, redirect_uri: config.redirectURL, authorization: config.authorization_endpoint // scopes: { request: ["userinfo"]} @@ -118,7 +118,7 @@ const API = { var state = getState() const jsoconfig = { providerID: "oauthPlay", - client_id: state.serverConfig.clientId, + client_id: state.serverConfig.client_id, redirect_uri: state.serverConfig.redirectURL, authorization: state.serverConfig.authorization_endpoint // scopes: { request: ["userinfo"]} @@ -134,22 +134,22 @@ const API = { return (dispatch, getState) => { var state = getState() - if (!state || !state.serverConfig || !state.serverConfig.clientId) { - // console.error("CANNOT DO CALLBACK BECAUSE CLIENDIT is missing...", state) + if (!state || !state.serverConfig || !state.serverConfig.client_id) { + console.error("CANNOT DO CALLBACK BECAUSE CLIENDIT is missing...", state) return } // console.error(". STATE STATE STATE ", state) const jsoconfig = { providerID: "oauthPlay", - client_id: state.serverConfig.clientId, + client_id: state.serverConfig.client_id, redirect_uri: state.serverConfig.redirectURL, authorization: state.serverConfig.authorization_endpoint // scopes: { request: ["userinfo"]} } - // console.error(". Initialising oauth callback", jsoconfig) + console.error(". Initialising oauth callback", jsoconfig) appJSO = new jso(jsoconfig) appJSO.callback(undefined, (token) => { - // console.error(" ====) (===== Got token, ayay", token) + console.error(" ====) (===== Got token, ayay", token) dispatch(actions.tokens.save(token)) }) } -- GitLab