2016-12-16 11 views
2

リダイレクトを使用してfirebase google authにparamatersを渡す方法私はカスタムパラメータredirect_uriを渡す必要がありますが、私はそれを行うことができません。スニペットはsetCustomParametersのための、本文書によるとfirebaseangularjsのgoogle oAuth redirect_uri

答えて

0

現在サポートされていない...ここに行く:

予約はOAuthのにこのような 'client_idの'、 'REDIRECT_URI'、 として2.0パラメータを必要と* 'scope'、 'response_type'、 'state'は許可されず、無視されます。

0

var provider = new firebase.auth.GoogleAuthProvider(); 
     provider.setCustomParameters({ 
      'redirect_uri': 'http://localhost:3002/auth-login' 
     }); 

     //then i call the redirect function 

     firebase.auth().signInWithRedirect(provider);