Persist Auth0 social login to mongodb database in Nextjs App

I’m facing an issue where I need to persist user information from Auth0 to my database. Think of when a user creates an account, I want to have the user information in a database so all my references can work, etc.

I found a way to do this but it only works for email signing. I want to persist user information even when they create an account with Google, Facebook, etc.

Is this possible with Auth0? And how would I go about it?