From 6a17eca69c7fcdd945215ac25912cfc0f1e265cb Mon Sep 17 00:00:00 2001 From: Fosco Marotto Date: Fri, 26 Feb 2016 06:00:41 -0800 Subject: [PATCH] Fix for JS SDK needing a key --- src/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/index.js b/src/index.js index a08b43148e..2a08d03e4a 100644 --- a/src/index.js +++ b/src/index.js @@ -79,10 +79,10 @@ function ParseServer({ databaseURI, cloud, collectionPrefix = '', - clientKey = '', - javascriptKey = randomString(20), - dotNetKey = '', - restAPIKey = '', + clientKey, + javascriptKey, + dotNetKey, + restAPIKey, fileKey = 'invalid-file-key', facebookAppIds = [], enableAnonymousUsers = true, @@ -92,7 +92,7 @@ function ParseServer({ }) { // Initialize the node client SDK automatically - Parse.initialize(appId, javascriptKey, masterKey); + Parse.initialize(appId, javascriptKey || 'unused', masterKey); Parse.serverURL = serverURL; if (databaseAdapter) {