0
我試圖在Chrome擴展中實現Firebase登錄(通過Facebook)。當使用Chrome擴展中的authWithOAuthPopup時,「用戶取消了身份驗證」
我使用background.js腳本
var ref = new Firebase("https://DB.firebaseio.com");
ref.authWithOAuthPopup("facebook", function(error, authData) {
alert(error);
});
的authData爲空,並提出錯誤是「火力地堡:用戶取消認證」中的以下代碼。
使用電子郵件/密碼登錄似乎沒有問題。
這裏怎麼回事?