且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Cloud Functions存储触发器中获取经过身份验证的Firebase用户的uid

更新时间:2023-12-02 13:55:10

当前,使用Cloud Storage触发器,您无权访问经过身份验证的用户信息.要解决此问题,您必须执行一些操作,例如将uid嵌入文件的路径中,或将uid作为元数据添加到文件上传中.

Currently, with Cloud Storage triggers, you don't have access to authenticated user information. To work around that, you'll have to do something like embed the uid in the path of the file, or add the uid as metadata in the file upload.