Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return async (dispatch, getState) => {
const dongleId = await ChffrPlus.readParam("DongleId");
Sentry.setUser({
dongleId,
});
const token = await ChffrPlus.createJwt({"identity": dongleId});
await Request.configure(token);
const device = await Devices.fetchDevice(dongleId);
dispatch({
type: ACTION_DEVICE_REFRESHED,
device,
})
}
}