In the universal login page using Auth0.js client-side library for authenticating the user, is there a callback for successful authentication?
There is callback for error, where we get back the error object with the message and other details when login fails due to any reason.
Code for failure Callback
webAuth.login({
realm: realm,
username: usernameField.value,
password: passwordField.value,
captcha: captcha.getValue()
}, function (err, data) {
console.log(err, data);
Is there a way to know that login is successful, so that we can send amplitude events for authentication success.