refactor: Improve incorrect deprecation log message for auth adapter (#8347)

This commit is contained in:
Manuel
2022-12-06 23:04:37 +01:00
committed by GitHub
parent 536bb2f1ae
commit b48c27049a
2 changed files with 6 additions and 5 deletions

View File

@@ -435,8 +435,8 @@ const handleAuthDataValidation = async (authData, req, foundUser) => {
const authProvider = (req.config.auth || {})[provider] || {};
if (authProvider.enabled == null) {
Deprecator.logRuntimeDeprecation({
usage: `auth.${provider}`,
solution: `auth.${provider}.enabled: true`,
usage: `Using the authentication adapter "${provider}" without explicitly enabling it`,
solution: `Enable the authentication adapter by setting the Parse Server option "auth.${provider}.enabled: true".`,
});
}
if (!validator || authProvider.enabled === false) {