Firebase authWithOAuthRedirect() woes

前端 未结 2 1579
再見小時候
再見小時候 2020-12-20 18:01

I\'m trying to update my angularjs app to support Firebase 1.1 (I was stick with Firebase 1.0.x).
It deprecates firebasesimplelogin, including authentication inside Fire

2条回答
  •  余生分开走
    2020-12-20 18:54

    The authData is available by registering a listener directly on the ref (so before calling authWithOAuthRedirect).

    ref.onAuth(function(authData) { 
        ... 
    } 
    ref.authWithOAuthRedirect("google", function(error) { ... });
    

    See https://www.firebase.com/docs/web/guide/user-auth.html#section-monitoring-authentication

提交回复
热议问题