WordPress at a glance
function is not described

wp_refresh_heartbeat_nonces() WP 5.0.0

Add the latest Heartbeat and REST-API nonce to the Heartbeat response.

No Hooks.

Return

Array. The Heartbeat response.

Usage

wp_refresh_heartbeat_nonces( $response );
$response(array) (required)
The Heartbeat response.

Code of wp refresh heartbeat nonces: wp-admin/includes/misc.php VER 5.0.3

<?php
function wp_refresh_heartbeat_nonces( $response ) {
	// Refresh the Rest API nonce.
	$response['rest_nonce'] = wp_create_nonce( 'wp_rest' );
	// TEMPORARY: Compat with api-fetch library
	$response['rest-nonce'] = $response['rest_nonce'];

	// Refresh the Heartbeat nonce.
	$response['heartbeat_nonce'] = wp_create_nonce( 'heartbeat-nonce' );
	return $response;
}