You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/guide/creating-your-bot/authentication.md
+60-1Lines changed: 60 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -266,6 +266,65 @@ const client = new Client({
266
266
});
267
267
```
268
268
269
+
#### Cloud Storage for Firebase (Firebase Storage) Store
270
+
271
+
Before you can use this Auth strategy you need to install the [`wwebjs-firebase-storage`](https://github.com/vedantmgoyal9/wwebjs-firebase-storage) module in your terminal:
272
+
273
+
<CodeGroup>
274
+
<CodeGroupItemtitle="NPM"active>
275
+
276
+
```bash
277
+
npm install wwebjs-firebase-storage
278
+
```
279
+
280
+
</CodeGroupItem>
281
+
<CodeGroupItemtitle="YARN">
282
+
283
+
```bash
284
+
yarn add wwebjs-firebase-storage
285
+
```
286
+
287
+
</CodeGroupItem>
288
+
<CodeGroupItemtitle="PNPM">
289
+
290
+
```bash
291
+
pnpm add wwebjs-firebase-storage
292
+
```
293
+
294
+
</CodeGroupItem>
295
+
</CodeGroup>
296
+
297
+
Once the package is installed, you have to import it and pass it to the `RemoteAuth`strategy as follows:
client.on('ready', () =>console.log('Client is ready!'));
325
+
client.initialize();
326
+
```
327
+
269
328
### Session Saved
270
329
271
330
After the initial QR scan to link the device, RemoteAuth takes about `1 minute` to successfully save the WhatsApp session into the remote database, therefore the ready event does not mean the session has been saved yet. In order to listen to this event, you can now use the following:
0 commit comments