Skip to content

Commit 6a17eca

Browse files
committed
Fix for JS SDK needing a key
1 parent 791c551 commit 6a17eca

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/index.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,10 @@ function ParseServer({
7979
databaseURI,
8080
cloud,
8181
collectionPrefix = '',
82-
clientKey = '',
83-
javascriptKey = randomString(20),
84-
dotNetKey = '',
85-
restAPIKey = '',
82+
clientKey,
83+
javascriptKey,
84+
dotNetKey,
85+
restAPIKey,
8686
fileKey = 'invalid-file-key',
8787
facebookAppIds = [],
8888
enableAnonymousUsers = true,
@@ -92,7 +92,7 @@ function ParseServer({
9292
}) {
9393

9494
// Initialize the node client SDK automatically
95-
Parse.initialize(appId, javascriptKey, masterKey);
95+
Parse.initialize(appId, javascriptKey || 'unused', masterKey);
9696
Parse.serverURL = serverURL;
9797

9898
if (databaseAdapter) {

0 commit comments

Comments
 (0)