web-token / jwt-framework

JWT Framework
MIT License
888 stars 105 forks source link

InvalidArgumentException: decodeNoPadding() doesn't tolerate padding #504

Closed glo71317 closed 7 months ago

glo71317 commented 9 months ago

Version(s) affected

3.2.9

Description

Some issue with happening during validating the input data and throwing InvalidArgumentException with new version. when tried with 3.2.8 and other previous versions, we did not find any issue.

Might be some issue introduced in new version 3.2.9

How to reproduce

In adobe commerce when we update this library with latest version we started getting InvalidArgumentException If need the sample code to reproduce this with sample code then we have to work on.

I think some backward compatibility issue which should be in patch version 3.2.9 because 3.2.8 is working fine for us. if you needed anything from our end we will try to provide.

Possible Solution

No response

Additional Context

Screenshot 2024-01-18 at 4 41 19 PM

No response

Spomky commented 9 months ago

Hi 👋🏼,

Just remove the extra = at the end of the secret string. Let me know if the exception is still there after the modification. Note that this error is the normal behavior, but was not throw in the last minor versions.

github-actions[bot] commented 6 months ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.