You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've implemented wagmi according to the docs, with the following flow: user connects their wallet, I wait to see that isConnected is true from useAccount, whereupon I then ask for a signature, using useSignature.
All that works fine, as long as they actually sign. I can disconnect, and repeat over and over again.
However, once the user ever rejects the signature, signing never works again.
Metamask will drop this error: inpage.js:1 MetaMask - RPC Error: The requested account and/or method has not been authorized by the user. {code: 4100, message: 'The requested account and/or method has not been authorized by the user.'}
I'm doing something like so: useEffect(() => { if (isConnected && isReconnecting === false) { signMessage({ message: SIGN_IN_MESSAGE, account: address }) } }, [isConnected, isReconnecting])
so the wallet is connected...
Rainbowkit will say nothing at all. You can click the sign button repeatedly but nothing will happen.
I'm at a loss of ideas, any help would be appreciated. I'm on the latest versions of wagmi and viem. I've also tried the action variant of signMessage, but that didn't help either. I'm also using RainbowKit if that matters.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've implemented wagmi according to the docs, with the following flow: user connects their wallet, I wait to see that
isConnected
is true fromuseAccount
, whereupon I then ask for a signature, usinguseSignature
.All that works fine, as long as they actually sign. I can disconnect, and repeat over and over again.
However, once the user ever rejects the signature, signing never works again.
Metamask will drop this error:
inpage.js:1 MetaMask - RPC Error: The requested account and/or method has not been authorized by the user. {code: 4100, message: 'The requested account and/or method has not been authorized by the user.'}
I'm doing something like so:
useEffect(() => { if (isConnected && isReconnecting === false) { signMessage({ message: SIGN_IN_MESSAGE, account: address }) } }, [isConnected, isReconnecting])
so the wallet is connected...
Rainbowkit will say nothing at all. You can click the sign button repeatedly but nothing will happen.
I'm at a loss of ideas, any help would be appreciated. I'm on the latest versions of wagmi and viem. I've also tried the action variant of
signMessage
, but that didn't help either. I'm also using RainbowKit if that matters.Beta Was this translation helpful? Give feedback.
All reactions