|
@@ -30,7 +30,7 @@ class JwtAuthMiddleware
|
|
];
|
|
];
|
|
return response()->json($error);
|
|
return response()->json($error);
|
|
}
|
|
}
|
|
- $data = JWTAuth::decode($token);
|
|
|
|
|
|
+ $data = JWTAuth::decode($token)['user'];
|
|
if ($data->sign !== md5($data->uid . env('JWT_SECRET'))) {
|
|
if ($data->sign !== md5($data->uid . env('JWT_SECRET'))) {
|
|
$error = [
|
|
$error = [
|
|
'message' => 'request is not allow',
|
|
'message' => 'request is not allow',
|