# The JWT string must have two dots

**URL:** <https://discourse.slimframework.com/t/the-jwt-string-must-have-two-dots/5968>\
**Category:** Questions\
**Created:** [August 7, 2024, 2:05pm UTC](https://discourse.slimframework.com/t/the-jwt-string-must-have-two-dots/5968 "2024-08-07T14:05:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![LaBaude](https://avatars.discourse-cdn.com/v4/letter/l/8e8cbc/32.png) [@LaBaude](https://discourse.slimframework.com/u/LaBaude)\
**Post date:** [August 7, 2024, 2:05pm UTC](https://discourse.slimframework.com/t/the-jwt-string-must-have-two-dots/5968/1 "2024-08-07T14:05:31Z")

</div>

Hi,  
I had a strange problem after a dependency update and deployment on my server, I got this error :

```auto
{
   "message": "Slim Application Error",
   "exception": [
       {
           "type": "Lcobucci\\JWT\\Token\\InvalidTokenStructure",
           "code": 0,
           "message": "The JWT string must have two dots",
           "file": "/var/www/html/vendor/lcobucci/jwt/src/Token/InvalidTokenStructure.php",
           "line": 13
       }
   ]
}

```

But it’s surprising because I followed the implementation of @odan’s book and it worked perfectly until now.  
Does anyone have any idea what the problem is?  
Baudouin

---

<div class="post-metadata">

**Author:** ![odan](https://avatars.discourse-cdn.com/v4/letter/o/9de053/32.png) [@odan](https://discourse.slimframework.com/u/odan)\
**Post date:** [August 7, 2024, 3:50pm UTC](https://discourse.slimframework.com/t/the-jwt-string-must-have-two-dots/5968/2 "2024-08-07T15:50:39Z")

</div>

> The JWT string must have two dots

Have you checked the JWT?
