Thank you thank you! That fixed it.
@Teodor what I meant is that I have tried to login with a SHA hash encrypted password.
For example:
Username: myusername
Password: mypassword
In the db: 9f338c1199c9e17824c8585162cdd000cefd80e3849f9f312bd65c3601fa96569c9c17c2d4a3e98b7b466a73de2270ba994daca9aa1a1d03b84e48c462e577a6
Then I also tried to login with a new information that I encrypted with argon, like:
Username: myusername
Password: newpassword
In the db: $argon2id$v=19...
Either way, I don’t think we need to debug this further as the issue is fixed by applying Sid’s fix: Argon2 Failing Again
So for some reason my database.js was not the right version, I added some info in that thread.