【发布时间】:2016-12-16 11:34:14
【问题描述】:
如何使用重定向将参数传递给 firebase google auth。我需要传递一个自定义参数 redirect_uri 但我无法做到。 sn-p 在这里..
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);
【问题讨论】:
标签: angularjs firebase google-authentication