# Using a custom database connection, why is login check not running? (SOLVED)

**URL:** <https://community.auth0.com/t/using-a-custom-database-connection-why-is-login-check-not-running-solved/15755>\
**Category:** Get Help\
**Tags:** custom-database\
**Created:** [September 21, 2018, 8:34am UTC](https://community.auth0.com/t/using-a-custom-database-connection-why-is-login-check-not-running-solved/15755 "2018-09-21T08:34:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexab/32/13403_2.png) [@alexab](https://community.auth0.com/u/alexab)\
**Post date:** [September 21, 2018, 8:34am UTC](https://community.auth0.com/t/using-a-custom-database-connection-why-is-login-check-not-running-solved/15755/1 "2018-09-21T08:34:24Z")

</div>

I am trying to develop a setup with custom database (mongodb).

The implementation is going well. Users can sign in, the custom database script then goes to my API, and I verify the user against the corresponding user in mongoDb. I can hereafter see the user in the Auth0 dashboard.

However, my issue is that when I:

1. Create a user in Mongo
2. Log in with that user successfully (the user is now in the Auth0 dashboard)
3. I delete the user in Mongo (and not in the Auth0 dashboard)
4. When I now try to login, it works and Auto0 does not verify against my API endpoint! Is that because I need to delete the user in Auth0 as well, or is Auth0 just persisting/caching information so it does not visit my API endpoint to verify on each login?

I hope you can help me clarify, and thanks in advance.

Alex

---

<div class="post-metadata">

**Author:** ![jerdog](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jerdog/32/11231_2.png) [@jerdog](https://community.auth0.com/u/jerdog)\
**Post date:** [September 24, 2018, 9:30am UTC](https://community.auth0.com/t/using-a-custom-database-connection-why-is-login-check-not-running-solved/15755/3 "2018-09-24T09:30:45Z")

</div>

If using a custom database with import mode then the username password of the user migrated to auth0 and the login script will not be called once migrated. The following should give a good view to the process

[https://auth0.com/docs/users/migrations/automatic#the-migration-process](https://auth0.com/docs/users/migrations/automatic#the-migration-process)

---

<div class="post-metadata">

**Author:** ![alexab](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/alexab/32/13403_2.png) [@alexab](https://community.auth0.com/u/alexab)\
**Post date:** [September 24, 2018, 9:47am UTC](https://community.auth0.com/t/using-a-custom-database-connection-why-is-login-check-not-running-solved/15755/4 "2018-09-24T09:47:07Z")

</div>

Hi Jeremy.

Thanks for the link, a colleague of mind just solved the problem.

Turns out Auth0 has a functionality called “silent authentication”. This caused Auth0 not to check the login script every time a user logged in. So disabling this solved the issue.

---

<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:** [October 24, 2018, 9:47am UTC](https://community.auth0.com/t/using-a-custom-database-connection-why-is-login-check-not-running-solved/15755/5 "2018-10-24T09:47:09Z")

</div>

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