#Flow - No accountability when calling custom endpoints

2 messages · Page 1 of 1 (latest)

shadow aspen
#

We have a custom extension api endpoint with the following code, call by a webhook operation on a flow :
router.get('/token', (req: any, res: any) => { const userRole = req.accountability.role ...

In this context, req seems to have no accountability, is there some hidden feature to make this possible ?

hollow valley
#

I encountered the same issue, when GETing a custom endpoint from a webhook flow, the accountability object is empty and I cannot identify the user.