具有身份验证的Firebase Unity HTTP云功能

时间:2017-04-23 22:16:44

标签: authentication firebase unity3d google-cloud-functions

云功能有HTTP endpoints。我们可以确保only authenticated users use them。为此,我们需要在客户端obtain the current user's token

同时,在Unity Editor中测试游戏时,您无法使用Firebase身份验证。您仍然可以using a service account测试您的游戏。没有经过身份验证的用户对象,这会阻止我们获取用户令牌。如果没有用户令牌,我们就无法使用经过身份验证的HTTP端点。

因此,当我们在Unity编辑器中测试游戏时,我们是否可以获取用户令牌,以便我们可以使用经过身份验证的Firebase HTTP端点?

0 个答案:

没有答案
相关问题