Requests from react app to integrations app

Hello,

I am connecting my frontend react app with the backend monday integrations app.

Previously, when we would run an automation/integration, monday attaches the authorization token to the header.

Now, with the react app, are we supposed to handle authoriztaion ourselves? Or, as Ibeen trying, use the following:

monday.get('sessionToken')
.then((token) => { 
  // send token to backend
  // On backend, call jwt.verify(token.data, 'MY_CLIENT_SECRET') 
}

I have tried this, but got an error that the signature is invalid.

Heading to sleep and will investigate further tomorrow, but if anyone has insights to this problem, I would appreciate the assistance.

Hello!
The “invalid signature” error when verifying the monday.get(‘sessionToken’) on your backend likely means the secret key used in jwt.verify doesn’t exactly match your Monday app’s Client Secret from the Developer Portal. Double-check this Client Secret for any typos or differences. Also, ensure you’re sending the raw token data from your React frontend without modification. Logging the token on both ends can help confirm it’s being transmitted correctly. Verifying the token with just the token and the Client Secret in a simplified backend test is a good next step. An incorrect Client Secret is the most probable cause.