Regex doesn't recognize JWT token
Author: vdb-sanderCreated Jun 2, 2022Updated Oct 27, 2025
Labelsenhancement
In the latest version (2.2.5) the regex to find the JWT token is set to the following. However, the payload of the token I was about to test started with eyI. This didn't match the regex and resulted in Cannot find a valid JWT.
eyJ[A-Za-z0-9_\/+-]*\.eyJ[A-Za-z0-9_\/+-]*\.[A-Za-z0-9._\/+-]*Modifying all regexes in the code to the following resolved my issue.
eyJ[A-Za-z0-9_\/+-]*\.ey[A-Za-z0-9_\/+-]*\.[A-Za-z0-9._\/+-]*Source: ticarpi/jwt_tool