Repository provides MariaDB's ed25519 plugin to use as an auth plugin to mysql2.
The code provided is a fork from mariadb-connector-nodejs/lib/cmd/handshake/auth/ed25519-password-auth.js
npm install @corejs/mysql2-auth-ed255119
const authPlugin = require('@coresql/mysql2-auth-ed25519');
const client = mysql.createConnection({
authPlugins: {
'client_ed25519': authPlugin(),
},
// other settings
});