Authorize not resolving when locking device

Hey everyone! I’m seeing an issue where our app is setting a loading state as true when opening the popup to open a browser through await getAuth0Instance().webAuth.authorize and waiting for it to resolve to set the state back to false. There’s an edge case where, if a user locks the device while the popup is open, it does not resolve at all and leaves the loading state hanging.

Is there a way to handle this scenario and getting a response from this function?