# Code for JWT token are giving The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA256

**URL:** <https://devforum.zoom.us/t/code-for-jwt-token-are-giving-the-tokens-signature-resulted-invalid-when-verified-using-the-algorithm-hmacsha256/6129>\
**Category:** API and Webhooks\
**Tags:** dc\
**Created:** [October 3, 2019, 10:38am UTC](https://devforum.zoom.us/t/code-for-jwt-token-are-giving-the-tokens-signature-resulted-invalid-when-verified-using-the-algorithm-hmacsha256/6129 "2019-10-03T10:38:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![prem.srivastava](https://avatars.discourse-cdn.com/v4/letter/p/eb9ed0/32.png) [@prem.srivastava](https://devforum.zoom.us/u/prem.srivastava)\
**Post date:** [October 3, 2019, 10:38am UTC](https://devforum.zoom.us/t/code-for-jwt-token-are-giving-the-tokens-signature-resulted-invalid-when-verified-using-the-algorithm-hmacsha256/6129/1 "2019-10-03T10:38:50Z")

</div>

Hi @Tommy

i was trying to get JWT token using Java code but it is giving **“The Token’s Signature resulted invalid when verified using the Algorithm: HmacSHA256”** whereas after decode marketplace token and my token i am getting same key in both.  
Is there any API’s to get JWT token, or is there any another encoding techniques.  
Thanks  
Prem

---

<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 3, 2019, 4:15pm UTC](https://devforum.zoom.us/t/code-for-jwt-token-are-giving-the-tokens-signature-resulted-invalid-when-verified-using-the-algorithm-hmacsha256/6129/2 "2019-10-03T16:15:05Z")

</div>

Hey @prem.srivastava,

Can you try generating your JWT via [jwt.io](http://jwt.io) or one of the Java libraries listed there?

> **[JWT with Zoom - JSON Web Tokens (JWT) - Authorization - Documentation](https://marketplace.zoom.us/docs/guides/authorization/jwt/jwt-with-zoom#generate-with-jwtio)**
>
> JWT With Zoom
> 
> 
> 
> Below are examples of how to obtain your API Key/Secret and the minimum properties needed to generate your API Key/Secret for using Zoo...

Let me know if that helps!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 6:44pm UTC](https://devforum.zoom.us/t/code-for-jwt-token-are-giving-the-tokens-signature-resulted-invalid-when-verified-using-the-algorithm-hmacsha256/6129/3 "2020-08-21T18:44:12Z")

</div>

Closed on August 21, 2020, 6:44pm UTC


