Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#69 - update type hint
  • Loading branch information
jasonbahl committed Feb 14, 2020
commit 95578b68e68a0c0d7d858dbbe92d978b4a916081
4 changes: 2 additions & 2 deletions src/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -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() ) {

/**
Expand Down Expand Up @@ -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
Expand Down