Merge pull request #680 from ParsePlatform/fosco.jssdk
Fix for JS SDK needing a key
This commit is contained in:
10
src/index.js
10
src/index.js
@@ -79,10 +79,10 @@ function ParseServer({
|
|||||||
databaseURI,
|
databaseURI,
|
||||||
cloud,
|
cloud,
|
||||||
collectionPrefix = '',
|
collectionPrefix = '',
|
||||||
clientKey = '',
|
clientKey,
|
||||||
javascriptKey = randomString(20),
|
javascriptKey,
|
||||||
dotNetKey = '',
|
dotNetKey,
|
||||||
restAPIKey = '',
|
restAPIKey,
|
||||||
fileKey = 'invalid-file-key',
|
fileKey = 'invalid-file-key',
|
||||||
facebookAppIds = [],
|
facebookAppIds = [],
|
||||||
enableAnonymousUsers = true,
|
enableAnonymousUsers = true,
|
||||||
@@ -92,7 +92,7 @@ function ParseServer({
|
|||||||
}) {
|
}) {
|
||||||
|
|
||||||
// Initialize the node client SDK automatically
|
// Initialize the node client SDK automatically
|
||||||
Parse.initialize(appId, javascriptKey, masterKey);
|
Parse.initialize(appId, javascriptKey || 'unused', masterKey);
|
||||||
Parse.serverURL = serverURL;
|
Parse.serverURL = serverURL;
|
||||||
|
|
||||||
if (databaseAdapter) {
|
if (databaseAdapter) {
|
||||||
|
|||||||
Reference in New Issue
Block a user