![](/img/trans.png)
[英]What is the difference between Identity Platform and Firebase Authentication with Identity Platform
[英]How to mock Identity Platform Authentication to trigger beforeCreateHandler
我有一個谷歌雲 function,我在beforeCreate
觸發器中的 Google Identity Platform 中運行它,如下所示:
import * as gcipCloudFunctions from "gcip-cloud-functions";
const authClient = new gcipCloudFunctions.Auth();
const beforeCreate = authClient.functions().beforeCreateHandler((user, context) => {
console.log("Hello world");
});
export default beforeCreate;
我如何通過 go 創建笑話測試來模擬此事件? 或者我如何創建測試來執行這個 function?
阻塞函數。
目前,據我所知,GCP 沒有這樣的功能。 但是,您可以嘗試將其作為一項功能來請求。 您可以使用問題跟蹤器來請求此功能。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.