Hey @GTG - welcome to the community!
Could you let us know what query you’re trying to run, as well as what OAUTH permissions you’ve granted your app?
-Daniel
Thanks for response @dsilva.
This is my query:
query {
boards (ids: 873111956) {
id,
permissions,
name
views (ids: 13749058) {
id,
name
type
}
}
}
OAuth permissions:
The query works fine when I’m using it from my app view iframe.
The node.js implementation is very simple:
const mondayApi = mondaySdk();
mondayApi.setToken(sessionToken);
const res = await mondayApi.api(
`query {
boards (ids: ${boardId}) {
id,
permissions,
name
views (ids: ${boardViewId}) {
id,
name
type
}
}
}`,
{ token: sessionToken }
);
sessionToken is 100% valid, or at least it passes the jwt.verify
check.
Few days later I finally understood what was causing my problem 😃
sessionToken
is useless for my case, I need api token, and it can be obtained through Oauth.
In my case I need to do that for every user who is accessing my board view. This is rather not great UX 🙂
I converted this observation into a feature request: App installed webhook
Hi @GTG - Good point. This also impacts trying to use license keys for apps. We originally planned to use WHMCS licensing and billing for our app, but had to build Stripe integration because it would just be too cumbersome to ask every user of our app to enter a license key on every board. Hopefully we will see things like this centralized to the Admin App area eventually.
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.