# Custom Database connection: login / getUser scripts not being invoked

**URL:** <https://community.auth0.com/t/custom-database-connection-login-getuser-scripts-not-being-invoked/188787>\
**Category:** Get Help\
**Tags:** login-prompt-new-experience, login-experience\
**Created:** [July 4, 2025, 6:01pm UTC](https://community.auth0.com/t/custom-database-connection-login-getuser-scripts-not-being-invoked/188787 "2025-07-04T18:01:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![t.levtsun](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/t.levtsun/32/60160_2.png) [@t.levtsun](https://community.auth0.com/u/t.levtsun)\
**Post date:** [July 4, 2025, 6:01pm UTC](https://community.auth0.com/t/custom-database-connection-login-getuser-scripts-not-being-invoked/188787/1 "2025-07-04T18:01:17Z")

</div>

I’m migrating users from an existing Amazon Cognito user pool into Auth0 via a Custom Database connection (using “Import Users to Auth0”). I built a small wrapper API over Cognito that exposes two endpoints—`login` and `getUser`—and configured these in Auth0 under “Custom Database → Login” and “… → Get User.” Both endpoints pass the “Try” tests in the dashboard.

However, when I try to authenticate against this connection (either via “Try Connection” in the dashboard or through my local application using Universal Login / SDK), Auth0 always returns **“Wrong email or password”** and never actually calls my `login` or `getUser` endpoints. No requests hit my wrapper API.

**What I’ve Tried**

- Verified both endpoints succeed in “Try and save” tests in the Dashboard.
- Confirmed the connection is enabled for my application.
- Double-checked the script URLs, HTTP methods (POST), and headers.
- Reviewed Auth0 Dashboard logs—no record of invocation for this connection.

Please let me know what next steps or diagnostics I can perform to get my custom database scripts invoked properly. Thanks!

---

<div class="post-metadata">

**Author:** ![nik.baleca](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nik.baleca/32/68749_2.png) [@nik.baleca](https://community.auth0.com/u/nik.baleca)\
**Post date:** [July 9, 2025, 9:35pm UTC](https://community.auth0.com/t/custom-database-connection-login-getuser-scripts-not-being-invoked/188787/3 "2025-07-09T21:35:21Z")

</div>

Hi @t.levtsun

Welcome to the Auth0 Community!

I would recommend to review our documentation on:

- [Creating a Custom DB connection](https://auth0.com/docs/authenticate/database-connections/custom-db/create-db-connection)
- [Testing a Custom DB connection](https://auth0.com/docs/authenticate/database-connections/custom-db/test-custom-database-connections)
- [Troubleshooting Custom DB issues](https://auth0.com/docs/authenticate/database-connections/custom-db/error-handling)

If you still have any questions or issues, please let me know!

Kind Regards,  
Nik

---

<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:** [July 23, 2025, 9:35pm UTC](https://community.auth0.com/t/custom-database-connection-login-getuser-scripts-not-being-invoked/188787/4 "2025-07-23T21:35:41Z")

</div>

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