Hello All,
I am using React and using the authentication method to authenticate.
I want to get the value of the signature after the user has signed/authenticated.
Below is my code,
authenticate({provider: 'metamask',signingMessage: randomGeneratedHex})
.then(function (newUser) {
if(newUser.get('ethAddress')){
if(!cookies[newUser.get('ethAddress')]){
console.log('no cookies')
} else {
logout();
}
}
})
.catch(function (error) {
console.log(error);
});