authSwitchHandler: function()

in src/functions/nodejs/index.js [101:105]


            authSwitchHandler: function (data, cb) { // modifies the authentication handler
                if (data.pluginName === 'mysql_clear_password') { // authentication token is sent in clear text but connection uses SSL encryption
                    cb(null, Buffer.from(dbToken + '\0'));
                }
            }