We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f42d89 commit 32b2c07Copy full SHA for 32b2c07
src/Auth.php
@@ -121,11 +121,13 @@ public static function get_token_expiration() {
121
}
122
123
/**
124
- * @param $user
+ * Retrieves validates user and retrieve signed token
125
+ *
126
+ * @param User|WP_User $user Owner of the token.
127
*
128
* @return null|string
129
*/
- protected static function get_signed_token( \WP_User $user, $cap_check = true ) {
130
+ protected static function get_signed_token( $user, $cap_check = true ) {
131
132
133
* Only allow the currently signed in user access to a JWT token
0 commit comments