jjzjj

firebase-authentication

全部标签

javascript - 在 Firebase 位置更改时全局设置警报的最佳方式

我在我的应用程序中使用Firebase的其中一件事是存储用户提交的反馈-使用push()将child添加到某个位置。理想情况下,每当一个新的child被添加到该位置时,我都可以收到一封电子邮件,但这只能通过某些Firebase服务直接完成,或者可能通过某些可以点击URL的Firebase服务间接完成(包含一个通过电子邮件发送给我的小脚本),但我找不到任何关于这两种能力的提及。我能想到的一件事是像小型Node.js服务器一样不断运行并使用on('child_added',cb)收听该引用,并在发生变化时通过电子邮件通知我。我正在使用Firebase尝试在没有服务器的情况下构建此应用程序,

javascript - 本地修改数据的 Firebase 同步 : handling errors & global status

我有两个关于Firebasewebplatform的相关问题的synchronisationoflocally-modifieddatatotheserver:EveryclientsharingaFirebasedatabasemaintainsitsowninternalversionofanyactivedata.Whendataisupdatedorsaved,itiswrittentothislocalversionofthedatabase.TheFirebaseclientthensynchronizesthatdatawiththeFirebaseserversandw

javascript - Firebase 未定义?

我正在开发一个Angular项目并使用Firebase,它出现错误并显示ReferenceError:Firebaseisnotdefined,但我不明白为什么。这是我的index.htmlMyContactsAppmyContacts我的contact.js'usestrict';angular.module('myContacts.contacts',['ngRoute','firebase']).config(['$routeProvider',function($routeProvider){$routeProvider.when('/contacts',{templateUr

javascript - Cloud Functions for Firebase 在 CORS 预检请求上触发功能

我有一个云功能,可以验证来自客户端表单提交的输入。我正在为Firebase使用CloudFunctionshttpstriggers与corsexpressmiddleware.Firebase函数constfunctions=require('firebase-functions');constexpress=require('express');constcors=require('cors')({origin:true});constvalidateImageForm=require('./library/validate-image-form');exports.apiVali

javascript - 实用程序.crypto.lib。 randomBytes 不是函数 : aws cognito js throws error on authentication

我收到以下错误:TypeError:__WEBPACK_IMPORTED_MODULE_0_aws_sdk_global__.util.crypto.lib.randomBytesisnotafunction当我尝试使用我编写的以下代码对用户进行身份验证时:import{CognitoUserPool,CognitoUserAttribute,CognitoUser,AuthenticationDetails}from'amazon-cognito-identity-js';letauthenticationDetails=newAuthenticationDetails({Usern

javascript - 返回 Json 的 Firebase 函数

这是一个简单的要求——我如何从firebase数据库返回整个json。我的函数是[index.js]constfunctions=require('firebase-functions');constadmin=require('firebase-admin');varserviceAccount=require('./xxMyKeyxx.json');admin.initializeApp({credential:admin.credential.cert(serviceAccount),databaseURL:'https://xxmyProjectxx.firebaseio.co

javascript - 如何在 Clojurescript 中使用 firebase.push?我的数据正确吗?

我正尝试将一些数据.push到我的Firebase,但我在Chrome控制台中收到此错误:UncaughtError:Firebase.pushfailed:firstargumentcontainsaninvalidkey(cljs$lang$protocol_mask$partition0$)inproperty'arr.0'.Keysmustbenon-emptystringsandcan'tcontain".","#","$","/","[",or"]"这是我的代码:fb(js/Firebase."https://example.firebaseio.com/example-l

javascript - 使用 startAt 和 endAt 的 Firebase 结果范围

我尝试从我的Firebase数据中获取前100个结果,然后是接下来的100个,然后是接下来的100个等等。我尝试了多种方法。版本1ref.child('products').orderByChild('domain').startAt(0).endAt(100).once('value').then(function(snapshot){});版本2ref.child('products').orderByChild('domain').startAt(0).limitToFirst(100).once('value').then(function(snapshot){});版本3re

javascript - 如何在 Firebase 中生成 "storageBucket"?

当我尝试将代码粘贴到我的HTML中以通过Google登录时,Firebase一直给我空的“”而不是为“storageBucket”生成URL。我假设这就是我收到错误的原因:此域未被授权用于您的Firebase项目的OAuth操作。从Firebase控制台编辑授权域列表。(匿名函数)@iframe.js:84我正在使用浏览器同步到用户本地主机,这应该是一个授权域。我的HTMLheader中有firebasecdn以及为我的firebase应用程序生成的所有内容(storageBucket除外)。我尝试将我的应用程序导入新的Firebase,只需在类似的存储桶URL(“eventSpot.

javascript - 错误 : "Cannot find module" while running firebase cloud function

constfunctions=require('firebase-functions');varnodemailer=require('nodemailer');//constexpress=require('express');vartransporter=nodemailer.createTransport('smtps://username@gmail.com:password5@smtp.gmail.com');exports.sendMail=functions.https.onRequest((req,res)=>{varmailOptions={to:'receiver@