https.CallableContext interface

傳遞給處理程序的 API 元資料的介面。

簽名:

export interface CallableContext 

特性

財產類型描述
應用程式應用檢查數據解碼和驗證 Firebase AppCheck 令牌的結果。
授權驗證數據解碼和驗證 Firebase 身份驗證 ID 令牌的結果。
實例IdToken細繩Firebase 實例 ID 的未經驗證的令牌。
原始請求要求由可呼叫處理的原始請求。

https.CallableContext.app

解碼和驗證 Firebase AppCheck 令牌的結果。

簽名:

app?: AppCheckData;

https.CallableContext.auth

解碼和驗證 Firebase 身份驗證 ID 令牌的結果。

簽名:

auth?: AuthData;

https.CallableContext.instanceIdToken

Firebase 實例 ID 的未經驗證的令牌。

簽名:

instanceIdToken?: string;

https.CallableContext.rawRequest

由可呼叫處理的原始請求。

簽名:

rawRequest: Request;