Hello, I have a question regarding the user of moralis

Hi, I have a question when creating a moralis user in the user table, there is an authData section that contains an object with different data, one says signature, I deduce that this is the private signature key of the wallet, the id is the wallet, but this data “data”: “Welcome to Koolinart\n\nId: hzbh3Zy87weupfgHHptZvXBBAozKwxZHCozYeVjK:1674359160039” I don’t know where they come from, could you give me an example of how I add these fields? I have a personalized wallet and I would like to add these fields, how can I do it, thank you very much.

example:

{
  "moralisEth": {
    "id": "0x36bf0ef48783e1b216f54d56ef7e0e2123ca3601",
    "signature": "0x8564af5ed29c08075111a8b1cdb8e8d5a95c0000000000000000000000a8336f21d416cc4730365f526bbd4450448f9f5174cdb37741b1ffe00b6ab4235e84831b",
    "data": "Welcome to Koolinart\n\nId: hzbh3Zy87weupfgHHptZvXBBAozKwxZHCozYeVjK:1674359160039"

}
}

Hey @davidzuccarini,

These all come from the Moralis SDK logic inside. Can you specify which part exactly would you like to change?

the data is the message that was signed, it is needed in order to validate the signature

welcome is the text that you can configure
next is the application id (hzbh3Zy87weupfgHHptZvXBBAozKwxZHCozYeVjK)
next is current timestamp (1674359160039)

Ok, perfect. Could you give me an example of how I generate these values? or where can i find them?

this is the application id of a moralis server (you will find it in admin interface if you have a server), you can use any other string there if you want to implement your custom implementation for that message

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.