Test JWTs from Zoom site not accepted | Community
Skip to main content
Newcomer
October 7, 2021
Solved

Test JWTs from Zoom site not accepted

  • October 7, 2021
  • 1 reply
  • 0 views

For some time now I have been testing Zoom APIs using Insomnia and the JWTs generated on this Zoom supplied page: https://marketplace.zoom.us/docs/guides/auth/jwt

Once I know I have the right API (or have simply got the data I want) I then write code to call the APIs as needed.

This has worked well until this week.  My existing programs still work but using Insomnia with the JWT supplied by the Zoom page to test out new APIs produces 

{

"code": 124,
"message": "Invalid access token."

}

The key and secret are identical.  Also previously stored test calls in Insomnia also fail to work with the new JWTs. Left with the ole ones they (correctly) respond that the JWT has expired.

Anyone got any ideas on what could cause this?

    Best answer by JonBoy49

    Found my own answer.  A spurious CR had found its way in before the JWT text. Because of the way wrapping is handled the appearance is identical with and without the CR. Remove it and all works as expected.

    1 reply

    JonBoy49AuthorAnswer
    Newcomer
    October 8, 2021

    Found my own answer.  A spurious CR had found its way in before the JWT text. Because of the way wrapping is handled the appearance is identical with and without the CR. Remove it and all works as expected.