Firebase托管和自定义身份验证
问题描述:
是否可以使用自定义身份验证策略和Firebase托管?由于Hosting计划缺少服务器端代码支持,因此似乎不太可能,或者我缺少什么吗?
Is it possible to use a custom authentication strategy, and Firebase hosting? Due to the lack of server-side code support with the Hosting plan, it doesn't seem likely, or am I missing something?
答
Firebase托管是一种向Web访问者提供静态资产的方法.它无法在Firebase的服务器上运行您的自定义代码.
Firebase Hosting is a way to serve static assets to web visitors. It cannot run your custom code on Firebase's servers.
因此答案确实是:不,您不能使用Firebase托管在Firebase服务器上创建自定义JWT令牌.
So the answer is indeed: no, you cannot use Firebase Hosting to mint custom JWT tokens on the Firebase servers.