@@ -13,7 +13,6 @@ |
||
13 | 13 | |
14 | 14 | use Illuminate\Http\Request; |
15 | 15 | use Illuminate\Support\Str; |
16 | -use Illuminate\Support\Arr; |
|
17 | 16 | use Tymon\JWTAuth\Support\Utils; |
18 | 17 | use Tymon\JWTAuth\Claims\Factory as ClaimFactory; |
19 | 18 | use Illuminate\Support\Collection; |
@@ -61,7 +61,7 @@ |
||
61 | 61 | /** |
62 | 62 | * Get the currently authenticated user |
63 | 63 | * |
64 | - * @return mixed |
|
64 | + * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
65 | 65 | */ |
66 | 66 | public function user() |
67 | 67 | { |
@@ -27,7 +27,7 @@ |
||
27 | 27 | /** |
28 | 28 | * Try to parse the token from the request query string |
29 | 29 | * |
30 | - * @param Illuminate\Http\Request $request |
|
30 | + * @param Request $request |
|
31 | 31 | * |
32 | 32 | * @return null|string |
33 | 33 | */ |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | * |
75 | 75 | * @param array $credentials |
76 | 76 | * |
77 | - * @return boolean |
|
77 | + * @return string|boolean |
|
78 | 78 | */ |
79 | 79 | public function validate(array $credentials = [], $login = true) |
80 | 80 | { |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | /** |
135 | 135 | * Return the currently cached user. |
136 | 136 | * |
137 | - * @return \Illuminate\Contracts\Auth\Authenticatable|null |
|
137 | + * @return \Illuminate\Contracts\Auth\Authenticatable |
|
138 | 138 | */ |
139 | 139 | public function getUser() |
140 | 140 | { |
@@ -178,7 +178,7 @@ discard block |
||
178 | 178 | /** |
179 | 179 | * Determine if the user matches the credentials. |
180 | 180 | * |
181 | - * @param mixed $user |
|
181 | + * @param \Illuminate\Contracts\Auth\Authenticatable|null $user |
|
182 | 182 | * @param array $credentials |
183 | 183 | * |
184 | 184 | * @return boolean |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use Tymon\JWTAuth\JWTAuth; |
15 | 15 | use Tymon\JWTAuth\Manager; |
16 | 16 | use Tymon\JWTAuth\Factory; |
17 | -use Tymon\JWTAuth\JWTGuard; |
|
18 | 17 | use Tymon\JWTAuth\Blacklist; |
19 | 18 | use Tymon\JWTAuth\Http\Parser; |
20 | 19 | use Tymon\JWTAuth\Http\AuthHeaders; |