如何在 firebase 云函数 shell 中添加身份验证 token ,以测试需要身份验证的可调用对象?
用户身份验证 token 的良好语法是什么:
firebase > myAwsomeCallable({foo:"bar"},{"whatIsKeyforToken:"token");
有谁知道一个有效的例子?第二个参数的正确数据结构是什么(可调用签名中的上下文/身份验证)?
此致
最佳答案
documentation for locally testing callable functions目前说:
Emulation of context.auth is currently unavailable.
所以,你正在尝试做的事情目前是不可能的。如果这对您很重要,请file a feature request .
关于Firebase 云函数外壳 : add authentication token in order to call callable,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54931448/