When i use java application to get token (JWT) error

every time when i use java application to get token (JWT)
and i will receive a string like this
"eyJ0eXBlIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJqdGkiOiIxMjMiLCJpYXQiOjE1ODQ3MDk2NDUsImlzcyI6ImNuWFBJMTdTUVVDVWJUYUx5QXpERVEiLCJleHAiOjE1ODQ3MDk3Mjl9.YXyQUU_OiKgg65GD7mSuGITsTFxBUeLSAkoqv8_rg7w
"
i use this string to access https://api.zoom.us/v2/users?page_number=1&page_size=30&status=active

header is
Bearer eyJ0eXBlIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJqdGkiOiIxMjMiLCJpYXQiOjE1ODQ3MDk2NDUsImlzcyI6ImNuWFBJMTdTUVVDVWJUYUx5QXpERVEiLCJleHAiOjE1ODQ3MDk3Mjl9.YXyQUU_OiKgg65GD7mSuGITsTFxBUeLSAkoqv8_rg7w

it return

{
“code”: 124,
“message”: “The Token’s Signature resulted invalid when verified using the Algorithm: HmacSHA256”
}

who can help me please.

Hi @fsx,

How are you creating the JWT token? Did you use one of the support jwt.io java libraries? You can use these guides below.
1 - https://marketplace.zoom.us/docs/guides/authorization/jwt
2 - https://marketplace.zoom.us/docs/guides/authorization/jwt/jwt-with-zoom

Thanks

1 Like

thanks i get it ,I tried many libaries of your provides。the one maven: io.jsonwebtoken / jjwt / 0.9.0
successed。thank u。

1 Like

Glad it is working now! :slight_smile:

Let us know if you have additional questions! :slight_smile:

-Tommy