有什么方法可以让我以Firebase的管理员身份对Firebase进行身份验证以对其进行完全读/写访问(已经具有保护它的某些部分的安全规则),还是我必须编写一条安全规则以某种方式允许我访问该安全规则?完整的Firebase,例如通过提供特定的密码/密钥。
有没有标准或建议的方法?
authWithCustomToken现在为signInWithCustomToken(firebase版本3.x)
文档中的示例:
firebase.auth().signInWithCustomToken(token).catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
if (errorCode === 'auth/invalid-custom-token') {
alert('The token you provided is not valid.');
} else {
console.error(error);
}
});
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句