Skip to content

Commit

Permalink
Merge pull request #61 from kidunot89/patch-1
Browse files Browse the repository at this point in the history
Remove type-hinting from "Auth::get_signed_token"
  • Loading branch information
jasonbahl authored Jan 14, 2020
2 parents 4f42d89 + 32b2c07 commit da65553
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,13 @@ public static function get_token_expiration() {
}

/**
* @param $user
* Retrieves validates user and retrieve signed token
*
* @param User|WP_User $user Owner of the token.
*
* @return null|string
*/
protected static function get_signed_token( \WP_User $user, $cap_check = true ) {
protected static function get_signed_token( $user, $cap_check = true ) {

/**
* Only allow the currently signed in user access to a JWT token
Expand Down

0 comments on commit da65553

Please sign in to comment.