WordPress at a glance
function is not described

wp_get_session_token() WP 4.0.0

Retrieve the current session token from the logged_in cookie.

No Hooks.

Return

String. Token.

Usage

wp_get_session_token();

Changelog

Since 4.0.0 Introduced.

Code of wp get session token: wp-includes/user.php WP 5.2.3

<?php
function wp_get_session_token() {
	$cookie = wp_parse_auth_cookie( '', 'logged_in' );
	return ! empty( $cookie['token'] ) ? $cookie['token'] : '';
}