Auth弹出返回空白页面

时间:2015-03-30 16:18:48

标签: oauth firebase

当我向Google提交auth调用时,我会从google窗口中获取弹出窗口,然后当我提交我的凭据并按下提交时将其转发到类似

的内容
https://auth.firebase.com/v2/FIREBASEREF/auth/google/callback?state= etc

然后我得到的是一个空白(蓝色背景)屏幕。

$('#loginButton').click(function() {
  myFirebaseRef.authWithOAuthPopup("google", function(error, authData) {
    if (error) {
      console.log("Login Failed!", error);
      alert("Login Failed, please try again.")
    } else {
      console.log("Authenticated successfully with payload:", authData);
      myUserID = authData.uid;
    }
  });
});

尝试使用Github进行身份验证时也会发生同样的情况,我可以按"提交"或者"登录"然后它只是在auth.firebase.com上加载一个空白页面

有什么想法吗?

由于

2 个答案:

答案 0 :(得分:1)

FWIW,如果有人在这个问题上失败了:我得到的是完全相同的东西... oauth弹出窗口是空白的,什么也没做。我通过从表单处理程序中删除async / await来修复它:

let beaconRegion = CLBeaconRegion(uuid: UUID(uuidString: "E2C56DB5-DFFB-48D2-B060-D0F5A71096E0")!, major: 111, minor: 222, identifier: "NewBeacon")

locationManager?.startMonitoring(for: beaconRegion)
locationManager?.startRangingBeacons(in: beaconRegion)

func locationManager(_ manager: CLLocationManager, didRangeBeacons beacons: [CLBeacon], in region: CLBeaconRegion) {
    if let beacon = beacons.first {
        print(beacon.identifier) //that
    }
}

答案 1 :(得分:-1)

我的解决方案是从cordova添加inAppBrowser,它不再返回空白页面。

相关问题