# Social login to mongodb

**URL:** <https://community.auth0.com/t/social-login-to-mongodb/130313>\
**Category:** Get Help\
**Tags:** google-social-connection, connections\
**Created:** [March 23, 2024, 11:20am UTC](https://community.auth0.com/t/social-login-to-mongodb/130313 "2024-03-23T11:20:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akshayshinde7289](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/akshayshinde7289/32/48573_2.png) [@akshayshinde7289](https://community.auth0.com/u/akshayshinde7289)\
**Post date:** [March 23, 2024, 11:20am UTC](https://community.auth0.com/t/social-login-to-mongodb/130313/1 "2024-03-23T11:20:02Z")

</div>

I have created my application and integrated it with nextjs pages router. I am only using social login such as google, facebook, and apple. No username and password login is used. Now i want to create a record against every new user who logins to my application using social login by auth0, how can i do it? My database is mongodb. I tried post-user registration action but seems like it only supports custom databases and social logins. Please help me here or provide some reference links.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [March 29, 2024, 1:37am UTC](https://community.auth0.com/t/social-login-to-mongodb/130313/3 "2024-03-29T01:37:22Z")

</div>

Hi @akshayshinde7289

Welcome to the Auth0 Community!

Thank you for posting your question. We have an excellent knowledge solution for determining the user signup → [Identify Sign Up Event in Post Login Action](https://community.auth0.com/t/identify-sign-up-event-in-post-login-action/122603). From this point, you only need to change the API update to connect with your Mongodb. I hope this will help you!

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 12, 2024, 1:38am UTC](https://community.auth0.com/t/social-login-to-mongodb/130313/4 "2024-04-12T01:38:07Z")

</div>

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