使用Firebase从C ++获取用户的电话号码 [英] Get user's phone number from C++ using Firebase
问题描述
JWT
,找出用户的Firebase ID,但当然这不是我所需要的。 / p> 我仍然需要知道用户的电话号码,并且我知道我可以使用用户ID和Firebase管理软件开发工具包进行此操作,但是我无法找到管理软件开发工具包C ++或任何可以从任何地方使用的web-API。那么,如何才能从C ++中知道用户的电话号码呢? 解决方案
没有Firebase Admin SDK对于C ++。 您可以使用 Firebase的云功能运行 Admin SDK for Node .js ,然后在 HTTP功能。然后你可以简单地从你的C ++代码中调用这个URL。 只要确保安全地访问该HTTP端点,就可以泄露敏感信息。 I'm trying to check user's phone number on the server side with C++. Client side looks ok, but on the server side I can only decode I still need to know phone number of the user, and I understand that I can do this with user ID and Firebase admin SDK, but I can't find admin SDK for C++ or any web-API which I could use from everywhere. So, how can I know user's phone number from C++? There is no Firebase Admin SDK for C++. What you could do is use Cloud Functions for Firebase to run the Admin SDK for Node.js on Google's servers and then expose what you need in a HTTP Function. You can then simply call this URL from your C++ code. Just be sure to properly secure access to that HTTP endpoint, since otherwise you might be leaking sensitive information. 这篇关于使用Firebase从C ++获取用户的电话号码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
JWT
from client and find out Firebase ID of the user, but of course this is not what I need.