Is there any way we can put a timeout or ensure output of any incoming data for this gets printed to console? I suspect that this await just never actually receives anything ...
const auth = await api.invoke('oauth:login', document.querySelector('#rememberMe').checked);
I'm more familiar with step-through debuggers in an IDE, so I'm a bit out of my depth here.