wesmiler hai 2 meses
pai
achega
9e7f50c631
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/Services/JwtService.php

+ 1 - 1
app/Services/JwtService.php

@@ -34,7 +34,7 @@ class JwtService extends BaseService
             "iat" => time(),
             "nbf" => time(),
             "exp" => time() + ($ttl?$ttl:env('JWT_TTL',3600)),  // 有效期
-            "data" => $data
+            "data" => trim($data)
         );
         return JWT::encode($payload, env('JWT_KEY'), $this->alg);
     }