The current nimbus-jose-jwt dependency is at 8.18
<dependency> <groupId>com.nimbusds</groupId> <artifactId>nimbus-jose-jwt</artifactId> <version>8.18</version> </dependency>
Version 9 is released and it would be good to upgrade this dependency. Breaking changes are to be expected as the upgrade has changed a method name for toJSONString().
I can definitely submit a pull request for this issue, if that is agreeable.