You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm trying to create a message in a React Native Expo app but keep getting a "Cannot read property 'SiweMessage' of undefined" error.
My code:
import siwe from 'siwe';
const siweMessage = new siwe.SiweMessage({
domain: "192.168.1.233:19000", // the value of window.location.host
address: "0x...." , // using an address here
statement: 'login',
uri:"http://192.168.1.233:19000", // the value of window.location.origin
version: '1',
chainId: 80001, // Polygon Mumbai
});
return siweMessage.prepareMessage();
Any help would be much appreciated, thank you.
The text was updated successfully, but these errors were encountered:
Hello, I'm trying to create a message in a React Native Expo app but keep getting a "Cannot read property 'SiweMessage' of undefined" error.
My code:
Any help would be much appreciated, thank you.
The text was updated successfully, but these errors were encountered: