diff --git a/Parse-Dashboard/app.js b/Parse-Dashboard/app.js index 2a793e5610..86990518e6 100644 --- a/Parse-Dashboard/app.js +++ b/Parse-Dashboard/app.js @@ -62,7 +62,7 @@ module.exports = function(config, options) { const mountPath = getMount(app.mountpath); const users = config.users; const useEncryptedPasswords = config.useEncryptedPasswords ? true : false; - const authInstance = new Authentication(users, useEncryptedPasswords, mountPath); + const authInstance = config.authInstance || new Authentication(users, useEncryptedPasswords, mountPath); authInstance.initialize(app, { cookieSessionSecret: options.cookieSessionSecret }); // CSRF error handler