Error while using the Credentials provider with argon2 #12134
Unanswered
vladdg-dev
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Nodejs version: 14.2.15
Argon2 version: 0.41.1
NextAuth version: ^5.0.0-beta.25
I'm using the
argon2
package to hash and verify my passwords, and if I useargon2.verify
inside theauthorize
function inauth.config.ts
I get the following error:UnhandledSchemeError: Reading from "node:crypto" is not handled by plugins (Unhandled scheme). Webpack supports "data:" and "file:" URIs by default. You may need an additional plugin to handle "node:" URIs.
Here is myauth.config.ts
file:and here is my verifyPassword function:
I have verified the
verifiyPassword
function outside theauthorize
function, and it's working just fine. However it's not working insideauthorize
. Something likebcrypt
works, but I want to useargon2
. I have tried@node-rs/argon2
too, but that's not working at all.Beta Was this translation helpful? Give feedback.
All reactions