feat: Add dynamic master key by setting Parse Server option masterKey to a function (#9582)

This commit is contained in:
Daniel
2025-02-13 08:23:18 +11:00
committed by GitHub
parent 415373708a
commit 6f1d161a2f
8 changed files with 102 additions and 25 deletions

View File

@@ -162,7 +162,7 @@ class ParseServer {
}
const pushController = await controllers.getPushController(this.config);
await hooksController.load();
const startupPromises = [];
const startupPromises = [this.config.loadMasterKey?.()];
if (schema) {
startupPromises.push(new DefinedSchemas(schema, this.config).execute());
}