voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
26 lines (15 loc) • 801 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/installations](./installations.md) > [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<string>