We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e5b1d50 + 98c6506 commit 839f6b7Copy full SHA for 839f6b7
src/index.js
@@ -39,6 +39,7 @@ import { LoggerController } from './Controllers/LoggerController';
39
import { HooksController } from './Controllers/HooksController';
40
41
import requiredParameter from './requiredParameter';
42
+import { randomString } from './cryptoUtils';
43
// Mutate the Parse object to add the Cloud Code handlers
44
addParseCloud();
45
@@ -79,7 +80,7 @@ function ParseServer({
79
80
cloud,
81
collectionPrefix = '',
82
clientKey = '',
- javascriptKey = '',
83
+ javascriptKey = randomString(20),
84
dotNetKey = '',
85
restAPIKey = '',
86
fileKey = 'invalid-file-key',
@@ -227,4 +228,4 @@ function getClassName(parseClass) {
227
228
module.exports = {
229
ParseServer: ParseServer,
230
S3Adapter: S3Adapter
-};
231
+};
0 commit comments