Auth0 Home Blog Docs

How is a database chosen when defaultDatabaseConnection is NOT set

In the Lock v11 widget, there’s an option defaultDatabaseConnection (https://auth0.com/docs/libraries/lock/v11/configuration#defaultdatabaseconnection-string-).

We’ve been omitting this and it seems to magically get set to a specific DB in the POST /co/authenticate request. If I specify a value for defaultDatabaseConnection, it honors the value I set it to. My question: when I omit this value, how does it decide which database to use?

Hi @scott.frazer. This post may help:

https://community.auth0.com/t/database-connections/22504/3

2 Likes

Yes, that answers my question. Thanks!

2 Likes

Glad you have it figured out now!

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