# JWT auth error with generated API code

**URL:** <https://devforum.zoom.us/t/jwt-auth-error-with-generated-api-code/6436>\
**Category:** API and Webhooks\
**Created:** [October 28, 2019, 7:13pm UTC](https://devforum.zoom.us/t/jwt-auth-error-with-generated-api-code/6436 "2019-10-28T19:13:43Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [October 28, 2019, 9:24pm UTC](https://devforum.zoom.us/t/jwt-auth-error-with-generated-api-code/6436/3 "2019-10-28T21:24:32Z")

</div>

Hey @lweber.bt_dev,

We believe this is related to:

> [@Issues with Swagger client generation for Java](https://devforum.zoom.us/t/issues-with-swagger-client-generation-for-java/6105):
>
> I have noticed two problems with the generated Java client code. At the moment, these require manual changes by me in order to use the client API code. The user ‘pmi’ field is typed as a Java Integer in the InlineResponse20033 model class, but the field is required to have 10-digits. This means that any pmi which represents a number greater than 2147483647 (0x7FFFFFFF) will overflow the Java Integer type, and de-serialization (for example, Jackson libraries) will throw an exception. The ac…

In the meantime, while we are working to fix, I would suggest coding the request and JWT Authentication Bearer manually without the generated code.

JIRA: DEVELOPERS-404

Thanks,  
Tommy

---

_[View the full topic](https://devforum.zoom.us/t/jwt-auth-error-with-generated-api-code/6436)._
