https.CallableRequest interface

The request used to call a callable function.

Signature:

export interface CallableRequest<T = any> 

Properties

PropertyTypeDescription
acceptsbooleanWhether this is a request. Code can be optimized by not trying to generate a stream of chunks to call response.sendChunk if request.accepts is false. It is always safe, however, to call response.sendChunk as this will noop if accepts 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.accepts

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

Signature:

accepts: 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;