Skip to content
Merged
Changes from all commits
Commits
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
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