fix for authState getting locked in loggingIn when not connected