使用angular 2 google和firebase登录时获取更多信息

时间:2016-10-08 11:55:01

标签: authentication angular firebase-authentication google-authentication

我正在使用firebase 3和ng 2。 我的问题当我点击与谷歌帐户连接时,我变得更加兴奋。 我的错误是:

Error: redirect_uri_mismatch

    400. That’s an error.

Error: redirect_uri_mismatch

Application: Events Manager

You can email the developer of this application at: .....@gmail.com

The redirect URI in the request, https://......firebaseapp.com/__/auth/handler, does not match the ones authorized for the OAuth client. Visit https://console.developers.google.com/......apps.googleusercontent.com?project=181586 to update the authorized redirect URIs.

我的项目在http://localhost:3000/#/login

上运行

当我要去console.developers.google.com授权重定向URI-> http://localhost:3000/

任何想法乳清都会发生吗?

1 个答案:

答案 0 :(得分:0)

问题是需要将firebase auth链接添加到正确的主机。

firebase-> OAuth重定向域