xielin %!s(int64=5) %!d(string=hai) anos
pai
achega
8a30fe6b4f
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/Http/Middleware/JwtAuthMiddleware.php

+ 2 - 1
app/Http/Middleware/JwtAuthMiddleware.php

@@ -31,7 +31,8 @@ class JwtAuthMiddleware
                 ];
                 return response()->json($error);
             }
-            $data = JWTAuth::decode($token)->authenticate();
+//            $data = JWTAuth::decode($token)->authenticate();
+            $data = JWTAuth::decode($token);
             Log::debug('parse-token='.json_encode($data));
         } catch (TokenExpiredException $e) {
             $error = [