Skip to main content
Best answer

How do you add a custom message to the Connection Authentication Error dialog?

  • 24 February 2020
  • 1 reply
  • 469 views

The error message below is fairly friendly. However, we'd like to (if possible), add our own message below the red and above the numbered bullets (or elsewhere) to say:

...

Your API Key or Account Number were incorrect. Here's how to find the credentials you need https://help.teamworkiq.com/en/articles/3625469

...

image.png


If this is a CLI app, just throw an error if the authentication fails.

throw new Error("Your API Key or Account Number were incorrect. Here's how to find the credentials you need https://help.teamworkiq.com/en/articles/3625469")