Timeout for identity.launchWebAuthFlow()

Hi,

I use identity.launchWebAuthFlow() to do OAuth2 authentication to Google in my webextension. It works properly. There is just 1 thing why there can be problems. I did not find any timeout for it. So if there is some e.g. network problem it keeps trying without timeout.
A loading icon just kills the good user experience if it never stops.

Is there any way (formal or trick) to put some timeout for identity.launchWebAuthFlow()

Kind regards,
Gabor