wesmiler пре 2 месеци
родитељ
комит
9e7f50c631
1 измењених фајлова са 1 додато и 1 уклоњено
  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);
     }