There are some bug fixes in place in the master branch of go-jwt-middleware from several weeks ago. Is there a timeline on when a patch release will go out for this? The last release was December 4th.
If it is useful, I can help test things out too.