火力地堡验证错误代码:AUTH/APP-未授权
问题描述:
我在一个电子邮件地址和密码的用户使用的火力点认证登录。我也启用电子邮件/密码&我使用了firebase托管。火力地堡验证错误代码:AUTH/APP-未授权
这表明
错误代码>>认证/应用程序而不是授权
按摩>>这个程序,由域确定它托管在哪里,是不是授权使用火力地堡认证与所提供的API键。在Google API控制台中查看您的关键配置。
firebase.auth().signInWithEmailAndPassword($('#username').val(), $('#password').val())
.then(
)
.catch(function (error) {
var errorCode = error.code;
var errorMessage = error.message;
console.log(">>>"+errorCode+">>"+errorMessage);
});
答
您必须在您的浏览器的API密钥添加键限制。您需要转到Google Cloud控制台并删除这些限制。
答
https://console.cloud.google.com/apis/credentials/oauthclient/
Go to OAuth 2.0 client IDs > Web client (auto created by Google Service)
,并添加完整的域名
添加有www和没有WWW
- www.yourdomanin.com
- yourdomanin.com
您使用域名? Firebase托管? – aofdev
**在Google API控制台中查看您的关键配置**消息非常清晰! –