- Install mobile Trust Wallet in iOS
- Create new wallet, configure it with Swift Wallet option, using Face ID login
- Open WalletConnect V2 Adapter login
- Click on QR code
- Scan the QR with Trust Wallet app
- Click “Connect” in mobile
- Click “Confirm” to sign verification message
- Authenticate with FaceId
- No log-in, error in console! Failed to authenticate user, ,message verification failed “Signature do not match address of the message.”
Failed to authenticate user, ,message verification failed type: "Signature do not match address of the message."
verifySignedChallenge @ signingUtils.js:44
await in verifySignedChallenge
authenticateUser @ walletConnectV2adapter.js:201
Login failed: Error: Failed to authenticate user, ,message verification failed
at verifySignedChallenge (signingUtils.js:45:11)
WalletConnect V2 adapter code:
const web3AuthOptions = {
clientId,
web3AuthNetwork: web3AuthNetwork,
privateKeyProvider,
sessionTime: 604800
};
const web3auth = new window.Web3AuthNoModal(web3AuthOptions);
const defaultWcSettings = await getWalletConnectV2Settings(
"eip155",
["0x2105"],
walletConnectProjectId,
);
const walletConnectModal = new WalletConnectModal({
projectId: walletConnectProjectId,
});
const walletConnectV2Adapter = new WalletConnectV2Adapter({
adapterSettings: { qrcodeModal: walletConnectModal, ...defaultWcSettings.adapterSettings },
loginSettings: { ...defaultWcSettings.loginSettings },
});
web3auth.configureAdapter(walletConnectV2Adapter);
Btw same code, same app, same scenario with Metamask wallet works