Hey, I am using the nextjs-auth0 library to integrate auth0 inside my next application. I have a mongo database behind it. My goal is to ensure that when user signs up (normally/via social logins), I will catch the user id of the user who signs up and store it inside my database. Any suggestions for that ? Is there a way I can get that specific information about the first login / sign up, so I can do the db transactions only at that point. Or is there any other optimal way to handle this ?
Thanks