Debugging JWT Authentication
This snippet outputs the $_SERVER
superglobal so we can see if the Authorization token is being passed to the server or not.
add_action( 'init', function() {
if ( is_graphql_http_request() ) {
wp_send_json( [ 'server' => $_SERVER ] );
}
} );