UNPKG

voluptasmollitia

Version:
26 lines (15 loc) 801 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/installations](./installations.md) &gt; [getToken](./installations.gettoken.md) ## getToken() function Returns an Installation auth token, identifying the current Firebase Installation. <b>Signature:</b> ```typescript export declare function getToken(installations: FirebaseInstallations, forceRefresh?: boolean): Promise<string>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | installations | [FirebaseInstallations](./installations.firebaseinstallations.md) | The <code>Installations</code> instance. | | forceRefresh | boolean | Force refresh regardless of token expiration. | <b>Returns:</b> Promise&lt;string&gt;