golang-jwt / jwt

Go implementation of JSON Web Tokens (JWT).
https://golang-jwt.github.io/jwt/
MIT License
6.98k stars 335 forks source link

Remove global state for audience marshalling #404

Open hatstand opened 1 month ago

hatstand commented 1 month ago

Removes the global MarshalSingleStringAsArray and makes it configurable per token. This allows safely using both configuration options within the same application.

This is a breaking change so is intended mostly as a straw man for what the fix could look like.