Ste*_*tar 4 firebase google-cloud-functions
我有一个函数文件,我目前正在尝试做的就是访问Firebase auth()功能,根据电子邮件检查用户是否存在,然后获取他们的uid.
我有一个Angular 2应用程序,我在其中运行一个http请求来调用该函数,但是每当我尝试运行它时,我都会收到此错误:
Billing account not configured. External network is not accessible and quotas are severely limited. Configure billing account to remove these restrictions
Run Code Online (Sandbox Code Playgroud)
这是我的代码:
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp(functions.config().firebase);
/**
* Function to get a user by email
*/
exports.getUserByEmail = functions.https.onRequest((req, res) => {
console.log('req', req);
return admin.auth().getUserByEmail(req.query.email);
});
Run Code Online (Sandbox Code Playgroud)
这种类型的东西不允许在Spark
计划中吗?我仍然在开发我的应用程序,这是我现在唯一需要工作的东西,我宁愿不必立即开始付费只是为了使用这个小功能.有什么我能做的吗?
提前致谢!
归档时间: |
|
查看次数: |
5702 次 |
最近记录: |