[oAuthMobile] Invalid call of "TriggerExit" client action

[oAuthMobile] Invalid call of "TriggerExit" client action

  
Forge Component
(1)
Published on 10 Mar by Barduino
1 vote
Published on 10 Mar by Barduino

Very useful component. However, I am getting the following error when I use the block in my screen 'MainFlow.Integration':

Invalid call of the 'TriggerExit' client action of the 'MainFlow.Integration' since the latter is not currently active. This is likely due to a platform's client action being used as an event handler or in a setTimeout function. Consider removing this call by using the 'On Destroy' event of the screen/block or moving your logic to a global client action.

Should there be some cleaning on the "On Destroy" event? If so, how?

I have little to no Javascript experience. Could anybody help me out and explain how I can avoid this error? Otherwise, the component works as advertised. Thanks! Denis.