User authorization in forge resolver for Jira dashboard gadget


I’m building a Jira dashboard gadget and need to use the dashboardId and gadgetId in a resolver function to store data for the correct gadget.

According to this documentation page, the context of the resolver is unsafe? Can I rely on the dashboardId and gadgetId that are available in the resolver context? Otherwise how do I get these values in a secure manner?