Jump to top

iid

interface

The Firebase Instance ID service interface.

This module is available for the default app only.

Example

Get the Instance ID service for the default app:

const defaultAppIid = firebase.iid();

Properties

app

</>

The current FirebaseApp instance for this Firebase service.

Methods

delete

</>

Delete the Instance ID and all data associated with it. This stops the periodic sending of data to the Firebase backend that was started when the Instance ID was generated.

delete(): Promise<void>;

deleteToken

</>

Revokes access to a scope for an entity previously authorized by getToken().

deleteToken(authorizedEntity?: undefined | string, scope?: undefined | string): Promise<void>;

get

</>

Returns a identifier that uniquely identifies the app instance.

get(): Promise<string>;

getToken

</>

Returns a token that authorizes an Entity to perform an action on behalf of the application.

getToken(authorizedEntity?: undefined | string, scope?: undefined | string): Promise<string>;