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?