The Loopring Wallet's WalletConnect implementation for some reason has nothing returned from await siweMessage.validate(signature), even though the signature seems to be OK.
After some research, I found that configureSIWE in connectkit-next-siwe uses a deprecated method from the siwe library. It uses siweMessage.validate(signature) instead of the now recommended siweMessage.verify(params).
Context
await siweMessage.validate(signature)
, even though thesignature
seems to be OK.configureSIWE
inconnectkit-next-siwe
uses a deprecated method from thesiwe
library. It usessiweMessage.validate(signature)
instead of the now recommendedsiweMessage.verify(params)
.Dependencies:
connectkit-next-siwe @0.0.2
: https://github.com/SnowRobert/connectkit/blob/main/packages/connectkit-next-siwe/src/configureSIWE.tsxsiwe @^1.1.6
: https://github.com/spruceid/siwe/tree/main