https.CallableRequest interface

The request used to call a callable function.

Signature:

exportinterfaceCallableRequest<T=any>

Properties

PropertyTypeDescription
acceptsStreamingbooleanWhether this is a streaming request. Code can be optimized by not trying to generate a stream of chunks to call response.sendChunk if request.acceptsStreaming is false. It is always safe, however, to call response.sendChunk as this will noop if acceptsStreaming is false.
appAppCheckDataThe result of decoding and verifying a Firebase App Check token.
authAuthDataThe result of decoding and verifying a Firebase Auth ID token.
dataTThe parameters used by a client when calling this function.
instanceIdTokenstringAn unverified token for a Firebase Instance ID.
rawRequestRequestThe raw request handled by the callable.

https.CallableRequest.acceptsStreaming

Whether this is a streaming request. Code can be optimized by not trying to generate a stream of chunks to call response.sendChunk if request.acceptsStreaming is false. It is always safe, however, to call response.sendChunk as this will noop if acceptsStreaming is false.

Signature:

acceptsStreaming:boolean;

https.CallableRequest.app

The result of decoding and verifying a Firebase App Check token.

Signature:

app?:AppCheckData;

https.CallableRequest.auth

The result of decoding and verifying a Firebase Auth ID token.

Signature:

auth?:AuthData;

https.CallableRequest.data

The parameters used by a client when calling this function.

Signature:

data:T;

https.CallableRequest.instanceIdToken

An unverified token for a Firebase Instance ID.

Signature:

instanceIdToken?:string;

https.CallableRequest.rawRequest

The raw request handled by the callable.

Signature:

rawRequest:Request;