Hi!
I have a question about the public Apps and app installations: I am building an integration App. Once I have my app installed in the HubSpot account how should I secure my exposed endpoins (for example /webhook) to be available only for authorised users. At the moment my endpoints are open and making requests in Postmen impacts my app and make changes in hubspot account?
In this block of code what kind of logic should i use for the function “isAuthorized”?
app.post(“/webhook”, async (req, res) => {
if (isAuthorized(req.sessionID)) {
//do something
} else {
res.send(“not authorized”)
}
})
Thank you in advance ![]()