Hi there,
I have a simple backend for my app and I want to validate whether the request has come from a valid authenticated Monday user.
From the frontend I get the session token:
monday.get("sessionToken").then((res) => {...})
And then, I use that token to send the request to my backend. In the NodeJS backend I then verify this JWT token using my Signing Secret:
jwt.verify(tokenFromClient, MONDAY_SIGNING_SECRET)
Turns out this doesn’t work and I get “invalid signature”. However, if I use the Client Secret instead, then it works fine.
Am I misunderstanding anything? I thought that in order to validate in the backend if the request is valid, I should use the signing secret to validate the token. Or am I using the wrong token for this?
Thank you.