# Social Login with Custom Database?

**URL:** <https://community.auth0.com/t/social-login-with-custom-database/57487>\
**Category:** Get Help\
**Tags:** custom-social-connec, rules, social-connections, login, auth0\
**Created:** [February 6, 2021, 1:38pm UTC](https://community.auth0.com/t/social-login-with-custom-database/57487 "2021-02-06T13:38:32Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saragarg1234](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saragarg1234/32/27422_2.png) [@saragarg1234](https://community.auth0.com/u/saragarg1234)\
**Post date:** [February 6, 2021, 1:38pm UTC](https://community.auth0.com/t/social-login-with-custom-database/57487/1 "2021-02-06T13:38:32Z")

</div>

So, I have **used a custom database (MongoDB) for login** using Auth0.  
I **followed this tutorial:** [Tutorial Link](https://www.youtube.com/watch?v=TXnDFU4sG0A)  
So, this **only taught** me **how to implement login** but not social login.  
I have been struggling to find out that **what to do to send the data of users using social login** like Google or Facebook **to my MongoDB database** stored on atlas.

**Thanks.**

(Kindly reply as soon as possible since I have a **hackathon** and I am using auth0)

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [February 8, 2021, 2:57pm UTC](https://community.auth0.com/t/social-login-with-custom-database/57487/3 "2021-02-08T14:57:13Z")

</div>

Hi @saragarg1234

Social Login is implemented as a different connection type, it is not a DB connection.

Can you describe your use case? You don’t want to duplicate data for social users in your MongoDB database, as that creates a “two sources of truth” problem and you WILL run into sync issues at some point.

John

---

<div class="post-metadata">

**Author:** ![saragarg1234](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/saragarg1234/32/27422_2.png) [@saragarg1234](https://community.auth0.com/u/saragarg1234)\
**Post date:** [February 12, 2021, 5:42pm UTC](https://community.auth0.com/t/social-login-with-custom-database/57487/4 "2021-02-12T17:42:11Z")

</div>

Sorry my problem is fixed 🙂

---

<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:** [June 25, 2021, 12:59pm UTC](https://community.auth0.com/t/social-login-with-custom-database/57487/5 "2021-06-25T12:59:16Z")

</div>

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