We are planning on having the Auth0 connection name as part of the public url params.
An organization xyz
would be accessing our app like this, http://our-app-url/?domain=xyz.com
Now, we are using the xyz.com as the name of the enterprise connection and pass it to the allowedConnections
for the options passed to the Auth0Lock object.
It works well. However, we want to validate the name beforehand.
One way I see is to make an API call to get all connections and validate this name. However, I am wondering if there is any easier / better way to accomplish this using Lock library?