I have two different fields in my database email and username. My api perform get user only through username not by email. How can get username in getuser script ? The documents says it must support username property but how to get it?
Yes, additional logic is necessary to add in the get user script, but how to add that logic, auth0 has given us the template where only email can be used, and replacing and adding username parameter is not working here.
`function getUser(email, callback) {
// Send user identifier to external database API
let options = {
url: "https://example.com/api/search-users",
body: {
email: email
}
};`
Please please need more details on the implementation