wp_login get sesssion code example
Example: get session token in wp_login hook
// You can get it in wp_login. Use this instead
add_action('set_logged_in_cookie', 'custom_get_logged_in_cookie', 10, 6);
function custom_get_logged_in_cookie($logged_in_cookie, $expire, $expiration, $user_id, $logged_in_text, $token) {
// do something...
}