and it’s returning this same one for user registration or user login.
I want to know when a user signs up, so I can execute some logic after that, is there a way to pass on that json object a flag that says if the user has registered and not just signed in?
I’m really sorry for the delay in getting back to you. I understand how important this is, and I want to ensure you receive the most accurate and helpful information possible. I’m going to discuss this with our team to provide you with a precise answer.
By utilizing the getUserInfo function, you gain access to the user’s details upon onboarding. With this information, you have the ability to query your database to determine whether the user already exists, enabling you to appropriately categorize them. Furthermore, you have the option to leverage our server-side verification functionality (detailed at Using Server Side Verification with Web3Auth | Web3Auth) to ascertain whether the user is new or returning based on their wallet address.