I tried in different phone as well. It is same! Ios - chrome - you can try it live - try to test on scamornot.io
This is strange…
On mobile phone it should be like in 1st pic:
But 2nd is your site
Please share the login code
Have you changed Moralis.Web3.authenticate
to Moralis.authenticate
?
This is the code
Ofcourse i added the new way of custom message as mentioned in the previous ticket. Rest of the code is same.
Moralis.authenticate({
provider: walletProvider,
chainId: 56
}).then(function (user) {
authenticate(user.id, user.get('ethAddress')) // what does this code do?
});
Yes it does work correctly but they don’t do any custom message sign in.
That code makes an entry in my database and refresh the page.
This code is working perfectly fine if you select metamask from walletconnect instead of trustwallet. So the issue is with trust wallet sign in! The extra code doesn’t matter because treat that as refreshing on callback!
I’ve just tested it on local server with walletconnect+trustwallet on Android. Everything works correctly.
Maybe you should update your trustwallet version?
Trustwallet version is latest, ios version is latest!
I already mentioned that the problem is in iOS, not in android!
Sign in message will be fixed in next versions. Could you try login to check if it will redirect to trustwallet website
Okay, the bug is not on your side. We need time to figure it out.
Thanks for taking out time to figure this out, indeed the issue is with trust wallet, i made changes according to the link provided and it fixed the issue.
What changes did you make?
I’m having this same issue and can’t seem to solve it.
Here’s my code:
try {
setVisibleModal(true);
setLoadingMessage("Authenticating through WalletConnect");
Moralis.Web3.getSigningData = () => 'Welcome to SpacePath Marketplace! Please sign in to create an account.';
await Moralis.Web3.authenticate({ provider: "walletconnect" }).then((user) => {
try {
window.localStorage.removeItem('WALLETCONNECT_DEEPLINK_CHOICE');
if (user) {
const accountStatus = user.get("accountVerified");
setAuthenticationChecker(false);
setAccountVerified(accountStatus);
setVisibleModal(false);
} else {
setVisibleErrorModal(true);
setVisibleModal(false);
};