I have successfully implemented authentication in my site with netlifyIdentity. However, I’m trying to check if user’s login was successful to do other tasks with:
if (action == "login" || action == "signup") {
netlifyIdentity.open(action);
netlifyIdentity.on(action, user => {
console.log(user);
})
netlifyIdentity.on
never gets called, am I missing anything?