# Token's Signature resulted invalid when verified using the Algorithm: HmacSHA256

**URL:** <https://devforum.zoom.us/t/tokens-signature-resulted-invalid-when-verified-using-the-algorithm-hmacsha256/54968>\
**Category:** API and Webhooks\
**Created:** [July 30, 2021, 6:39am UTC](https://devforum.zoom.us/t/tokens-signature-resulted-invalid-when-verified-using-the-algorithm-hmacsha256/54968 "2021-07-30T06:39:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lukman.d](https://avatars.discourse-cdn.com/v4/letter/l/c6cbf5/32.png) [@lukman.d](https://devforum.zoom.us/u/lukman.d)\
**Post date:** [July 30, 2021, 6:39am UTC](https://devforum.zoom.us/t/tokens-signature-resulted-invalid-when-verified-using-the-algorithm-hmacsha256/54968/1 "2021-07-30T06:39:42Z")

</div>

**Description**  
Working on zoom api to retrieve user token and create new meeting. so i generated token as per zoom api token authorization docs through java like with some required payloads.

String jwtToken = JWT.create().withIssuer(key).withIssuedAt(issureDate).withExpiresAt(expiryDate).sign(Algorithm.HMAC256(secreateKey));

And if tried with token which is generated in app credentials tab of created JWT app for testing purpose then it works fine for me.

Let me know where i doing mistake or how i can resolve this issue or how can generate jwtToken as per zoom api token authorization docs through java

note - we have upgraded from pro to business account.

**Error**  
{

```
"code": 124,

"message": "The Token's Signature resulted invalid when verified using the Algorithm: HmacSHA256"

```

}

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
JWT

**Which Endpoint/s?**  
[https://api.zoom.us/v2/users/me/token](https://api.zoom.us/v2/users/me/token)  
[https://api.zoom.us/v2/users/me/meetings](https://api.zoom.us/v2/users/me/meetings)

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Request URL / Headers (without credentials) / Body
2. See error

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [August 2, 2021, 5:42pm UTC](https://devforum.zoom.us/t/tokens-signature-resulted-invalid-when-verified-using-the-algorithm-hmacsha256/54968/2 "2021-08-02T17:42:48Z")

</div>

Hi @lukman.d,

Have you had a chance to check out the libraries on [https://jwt.io](https://jwt.io)? We recommend leveraging one of these for generating your JWT token programmatically.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [September 2, 2021, 3:43am UTC](https://devforum.zoom.us/t/tokens-signature-resulted-invalid-when-verified-using-the-algorithm-hmacsha256/54968/3 "2021-09-02T03:43:35Z")

</div>

Closed on September 2, 2021, 3:43am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
