From ef4a7325f30ff2d2a2a8a4362a43ea725c975207 Mon Sep 17 00:00:00 2001 From: Jason Bahl Date: Mon, 4 May 2020 15:38:44 -0600 Subject: [PATCH 1/3] Release/v0.4.1 - Update version number for release --- wp-graphql-jwt-authentication.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-graphql-jwt-authentication.php b/wp-graphql-jwt-authentication.php index 3575585..0c56981 100644 --- a/wp-graphql-jwt-authentication.php +++ b/wp-graphql-jwt-authentication.php @@ -7,7 +7,7 @@ * Author URI: https://www.wpgraphql.com * Text Domain: wp-graphql-jwt-authentication-jwt-authentication * Domain Path: /languages - * Version: 0.4.0 + * Version: 0.4.1 * Requires at least: 4.7.0 * Tested up to: 4.8.3 * Requires PHP: 5.5 @@ -113,7 +113,7 @@ public function __wakeup() { private function setup_constants() { // Plugin version. if ( ! defined( 'WPGRAPHQL_JWT_AUTHENTICATION_VERSION' ) ) { - define( 'WPGRAPHQL_JWT_AUTHENTICATION_VERSION', '0.4.0' ); + define( 'WPGRAPHQL_JWT_AUTHENTICATION_VERSION', '0.4.1' ); } // Plugin Folder Path. From 676345e54f7f00a8693145f1a6d2d197f3c5af14 Mon Sep 17 00:00:00 2001 From: Kellen Mace Date: Mon, 22 Jun 2020 13:42:10 -0400 Subject: [PATCH 2/3] Expose auth token in response headers --- src/ManageTokens.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ManageTokens.php b/src/ManageTokens.php index b4d893b..0efee3f 100644 --- a/src/ManageTokens.php +++ b/src/ManageTokens.php @@ -364,15 +364,15 @@ public static function add_auth_headers_to_rest_response( $response ) { } /** - * Expose the X-JWT-Refresh tokens in the response headers. This allows - * folks to grab new refresh tokens from authenticated requests for subsequent use. + * Expose the X-JWT-Auth and X-JWT-Refresh tokens in the response headers. This + * allows folks to grab new tokens from authenticated requests for subsequent use. * * @param array $headers The existing response headers. * - * @return array + * @return array Response headers, with X-JWT-Auth and X-JWT-Refresh added. */ public static function add_auth_headers_to_response( array $headers ) { - $headers['Access-Control-Expose-Headers'] = 'X-JWT-Refresh'; + $headers['Access-Control-Expose-Headers'] = 'X-JWT-Auth,X-JWT-Refresh'; return $headers; } From 8645d322f1e7f7b9ad1bae558b2f554599bb943e Mon Sep 17 00:00:00 2001 From: Kellen Mace Date: Mon, 22 Jun 2020 14:38:10 -0400 Subject: [PATCH 3/3] Undo changes to wp-graphql-jwt-authentication.php file --- wp-graphql-jwt-authentication.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-graphql-jwt-authentication.php b/wp-graphql-jwt-authentication.php index 5c90901..d7b9158 100644 --- a/wp-graphql-jwt-authentication.php +++ b/wp-graphql-jwt-authentication.php @@ -7,7 +7,7 @@ * Author URI: https://www.wpgraphql.com * Text Domain: wp-graphql-jwt-authentication-jwt-authentication * Domain Path: /languages - * Version: 0.4.1 + * Version: 0.4.0 * Requires at least: 4.7.0 * Tested up to: 4.8.3 * Requires PHP: 5.5 @@ -113,7 +113,7 @@ public function __wakeup() { private function setup_constants() { // Plugin version. if ( ! defined( 'WPGRAPHQL_JWT_AUTHENTICATION_VERSION' ) ) { - define( 'WPGRAPHQL_JWT_AUTHENTICATION_VERSION', '0.4.1' ); + define( 'WPGRAPHQL_JWT_AUTHENTICATION_VERSION', '0.4.0' ); } // Plugin Folder Path.