Not working verifyOwner function

Hi,
To log in Near protocol, I use wallet selector. I get the account ID and public Key from near-wallet
And then I want to get the signature from wallet.verifyOwner() but I can’t.
When i call it, it move to 404 near page.

const wallet = await selector.wallet();
      const accounts = await wallet.signIn({ contractId: 'peters2.testnet', accounts: [] });
      console.log('!!!', wallet, accounts);
      const account = await wallet.getAccounts();
      console.log('@@@@', account);
      const owner = await wallet.verifyOwner({
        message: 'test message for verification',
      });

      if (owner) {
        alert(`Signature for verification: ${JSON.stringify(owner)}`);
      }

Did i miss something?

1 Like

Hi there, you might want to try the dev-support channel in Near Discord for this question since the devs are more active there. There will be members here to chime in as well but it might take longer.

2 Likes

Hi
How to access Near Discord?
I can’t find Near the Bos server

1 Like

You can use this link: Discord then head to dev-support channel

2 Likes