Get the Value of Signature after authentication

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);
  });

You can look in the dashboard interface in user table to see how the signature looks like and in what column it is. It should be in authData

Thanks make, I. am new to Moralis, how can I access my Dashboard interface?

Try to use console log for current user object then. You should also have the data there.

Got it, thank you. :pray:

1 Like