An error occurred while setting up end-user authentication in messaging | Community
Skip to main content

An error occurred while setting up end-user authentication in messaging

  • April 21, 2022
  • 1 reply
  • 0 views

james61

As part of the setup of my server, I generated a JWT that I can verify using jwt.io. Then, when my iOS app tries to use the token to authenticate with Zendesk, I get the following error message: "failedToDecodeJWT". We are currently experiencing this issue within the sandbox (we haven't tried this in production yet). Since it seems like the token should be valid at this point, I'm not sure how to troubleshoot the problem.

1 reply

Greg29
  • April 21, 2022

Hi James! That error tells me that there is something about the JWT payload that is missing or syntactically wrong. Did you confirm that all fields required here are present in the token? If so, print the token to your logs and then paste that into jwt.io to see if there is anything that it says there that can assist you. If you run into errors with either of those, please share those here and remove any sensitive data from the screenshots/text.