0
當我使用像建設角火力地堡simplelogin
ref.authWithOAuthPopup("facebook", function(error, authData) {
console.log("User ID: " + authData.uid + ", Provider: " + authData.provider);
}, {
remember: "sessionOnly",
scope: "email"
});
所有工作:
User ID: facebook:..., Provider: facebook
User ID: google:..., Provider: google
.... and others.
當我使用建設
var authClient = $firebaseSimpleLogin(ref);
authClient.$login("google", {
remember: "sessionOnly"
});
我看到一個錯誤「400。這是一個錯誤。錯誤:redirect_uri_mismatch'。
我已經使用https://auth.firebase.com/v2/MYFIREBASE/auth/google/callback url。隨着https://auth.firebase.com/auth/google/callback登錄工作。但警告FIREBASE警告:FirebaseRef.auth()將被棄用。請改用FirebaseRef.authWithCustomToken()。我沒有使用這種方法=這意味着authClient。$ login(「google」...)已棄用? – yazabara 2014-10-31 09:53:39
您使用的是Firebase 1.1嗎? – MarcoS 2014-10-31 10:03:26
// Firebase script(src ='https://cdn.firebase.com/js/client/1.1.1/firebase.js') script(src ='https://cdn.firebase.com/js 'simple-login/1.6.3/firebase-simple-login.js') – yazabara 2014-10-31 10:13:20