Hi,
I’m attempting to authenticate users on mobile using Walletconnect but am being thrown an error at different points in the process.
Upon the first attempt, clicking the connect button is successfully bringing-up the Walletconnect modal, giving Metamask as an option and taking me to the Metamask app to sign the request. However, once this request is signed and I’m redirected back to the site, the user is stuck authenticating.
Here is my code -
const walletConnectAuth = async () => {
if (!isAuthenticated) {
try {
await authenticate({
provider: "walletconnect",
mobileLinks: ["metamask"],
});
ToastAlert.fire({
icon: "success",
title: "Wallet Authenticated",
});
} catch (error) {
let svrErr = {
code: error.code,
message: error.message,
};
setServerErrors(svrErr);
}
}
};
The error -
PollingBlockTracker - encountered an error while attempting to update latest block:undefined.
A separate issue is that on android devices there are no wallets available within Walletconnect. Instead a ‘connect’ button is provided that redirects to a blank page.
As an experiment I hosted a version of your etherium boilerplate code and Walletconnect doesn’t work on mobile there either. It takes you through the process outlined above and returns to the site unauthenticated.
Thanks in advance.