I am starting to use the SDK to develop apps with dashboard features. I am just building some proof of concept simple apps at the moment, to test API queries.
I am able to upload an app as a dashboard feature, query data using the sdk and render it, which is great. I am taking advantage of seamless auth provided by the monday.api() method.
I now would like to start developing more efficiently, so i am trying to pass a token with the queries, so that i can debug in my local environment (rather than having to build and upload every time). I have tried using monday.setToken(‘api_token_provided_in_the_admin_section_of_monday.com’)
and i have also tried passing the same within the options parameter of the monday.api method.
when running locally, the api returns the error saying i am not authenticated (as if i had passed an incorrect token or no token at all).
I triple checked the token i am passing. I am using the same in a raw query using Postman and that returns the data i expect.
Help would be most appreciated, let me know if you need more information on the issue.