Skip to content

Commit 3607c4c

Browse files
authored
add support for 'mysql_clear_password' auth plugin
1 parent 9fa2c8a commit 3607c4c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/protocol/Auth.js

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ function auth(name, data, options) {
88
switch (name) {
99
case 'mysql_native_password':
1010
return Auth.token(options.password, data.slice(0, 20));
11+
case 'mysql_clear_password':
12+
return Buffer.from(options.password);
1113
default:
1214
return undefined;
1315
}

0 commit comments

Comments
 (0)