Automattic\WooCommerce\StoreApi\Utilities

JsonWebToken::generate_header()private staticWC 1.0

Generates the json formatted header for our HS256 JWT token.

Method of the class: JsonWebToken{}

No Hooks.

Return

String|true|false.

Usage

$result = JsonWebToken::generate_header();

JsonWebToken::generate_header() code WC 8.9.0

private static function generate_header() {
	return wp_json_encode(
		array(
			'alg' => self::$algorithm,
			'typ' => self::$type,
		)
	);
}