web-token / jwt-framework

JWT Framework
MIT License
888 stars 105 forks source link

Remove UTF-8 encoding check in JWEBuilder #554

Closed Spomky closed 6 months ago

Spomky commented 6 months ago

The UTF-8 encoding validation for the payload in the JWEBuilder has been removed. This modification was necessary because the check was unnecessarily restrictive and caused issues in certain use-cases. Now, any string can be used as the payload without throwing an InvalidArgumentException.

Target branch: Resolves issue #

Includes: