Closed LaurentDhont closed 1 year ago
Please see the with mysql2 section in the readme.
I know that the package "works" with mysql2 but it doesn't wait for the session to be saved and this is an issue that is hard to debug on very fast applications (like localhost).
I've been using this fix ever since I've gotten mysql deadlocks and it works flawlessly, never had a problem after switching the package. Really hope that this does get fixed for people that use the mysql2 package.
Thank you for taking the time to create a pull-request. The latest release of this module uses mysql2 instead of mysql.
Also upgraded express-session to 1.17.3
The reason why I wanted to change the package is because using mysql2 with express-mysql-session doesn't work and has issues with changing session data (probably because it doesn't wait for the promise to resolve). But when just sending the connection params (it uses mysql) and we cannot have caching_sha2_password and this is a security issue.
Please make it work with mysql2 or just change the package.