SIWE Next Auth Integration Fails Signature Verification After Connecting #4270
-
https://docs.walletconnect.com/web3modal/nextjs/siwe/next-auth When implementing this code above, after successfully connecting my wallet, the signature check always fails. On the backend api, it works properly with the provider singing in. Even after signature declined, the app still signs in. What logic controls the signature? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
hi, do you see any error on console? Can you share a minimal reproducible example? |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
okay @glitch-txs , I built a sample project. You would need to add a https://github.com/joeblau/web3modal-demo I've got good news and I've got bad news...
|
Beta Was this translation helpful? Give feedback.
-
Ahhhh I found the bug In this const success = await signIn("credentials", {
message,
redirect: false,
signature,
callbackUrl: "/protected",
}); if redirect is set to |
Beta Was this translation helpful? Give feedback.
okay @glitch-txs , I built a sample project. You would need to add a
NEXT_PUBLIC_PROJECT_ID=
to.env
and then everything should work.https://github.com/joeblau/web3modal-demo
I've got good news and I've got bad news...