Add this code in your theme functions.php file
add_action('set_logged_in_cookie', 'custom_set_logged_in_cookie', 10, 6);
function custom_set_logged_in_cookie($logged_in_cookie, $expire, $expiration, $user_id, $logged_in_text, $token) {
$user = get_user_by('id', $user_id);
if (!empty($user->user_login)) {
do_action('custom_wp_login', $user->user_login, $user);
}
}
Now do a minor change in the file:
user-login-history/includes/class-user-login-history.php
Add a new line:
$this->loader->add_action('custom_wp_login', $user_tracker, 'save_user_login', 10, 2); // new line for Trusona
after this code:
$this->loader->add_action('wp_login', $user_tracker, 'save_user_login', 10, 2);
I have not checked this code.
Please test and let me know if any issue.