From 95578b68e68a0c0d7d858dbbe92d978b4a916081 Mon Sep 17 00:00:00 2001 From: Jason Bahl Date: Fri, 14 Feb 2020 09:00:09 -0700 Subject: [PATCH] #69 - update type hint --- src/Auth.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Auth.php b/src/Auth.php index 6356427..15b7d45 100644 --- a/src/Auth.php +++ b/src/Auth.php @@ -320,7 +320,7 @@ public static function get_refresh_token( $user, $cap_check = true ) { */ add_filter( 'graphql_jwt_auth_token_before_sign', function( $token, \WP_User $user ) { $secret = Auth::get_user_jwt_secret( $user->ID ); - + if ( ! empty( $secret ) && ! is_wp_error( $secret ) && true === self::is_refresh_token() ) { /** @@ -427,7 +427,7 @@ public static function filter_determine_current_user( $user ) { * * @return mixed|boolean|\WP_Error */ - public static function revoke_user_secret( int $user_id ) { + public static function revoke_user_secret( $user_id ) { /** * Filter the capability that is tied to editing/viewing user JWT Auth info