Signing message with ethers.js

I’d like my app to perform different functions depending on whether the user has signed or not.
This feature will be developed using the coinbase wallet SDK and ethers.js.

  const getSign = (provider: ethers.providers.Web3Provider, address: string) => {
    const message = "sign message";
    const signer = provider.getSigner(address);

      .then(() => console.log("signed"))
      .catch(() => console.log("sign cancelled"));

If I cancel the signature in my coinbase wallet application, this works fine, but if I cancel the transaction in my web, it is treated as if I signed it.

스크린샷 2023-05-18 오후 5.28.24

Can you give me some ideas on how to address this?

Hello @2pandi! Welcome to the forum community.
Thank you for taking an interest in trying out Coinbase APIs. We appreciate you sharing this with us. Can you share more screenshots of the transactions still being treated as signed on web even after cancellation? So that we can share this with our team.


please check this out

Any updates on this?

Hi @2pandi! Apologies for the delay in response. We have reached out to our internal teams regarding this. We will soon share an update regarding this. Keep in touch.