1.0.4 ā€¢ Published 8 months ago

wwebjs-s3 v1.0.4

Weekly downloads
-
License
ISC
Repository
-
Last release
8 months ago

WhatsAppWeb.js AWS S3 Remote Auth Strategy

npm version License

šŸš€ WhatsAppWeb.js AWS S3 Remote Auth Strategy is a custom authentication strategy for WhatsAppWeb.js, allowing you to use AWS S3 for remote authentication.

Installation

Install the strategy using npm:

npm install wwebjs-s3

Usage

To use this AWS S3 remote auth strategy with WhatsAppWeb.js, follow these steps:

  1. Install the strategy package as shown above.
  2. Set up your AWS credentials using environment variables or configuration.
  3. Import and configure the strategy in your WhatsAppWeb.js app.
  4. Implement your custom authentication logic in your app.
  5. Here's an example of how to set up the strategy:
const { Client, RemoteAuth } = require('whatsapp-web.js');
const { S3Store } = require('wwebjs-s3');

const credentials = {
  region: 'your-s3-region',
  accessKeyId: 'your-s3-access-key-id',
  secretAccessKey: 'your-s3-secret-access-key',
  bucket: 'your-bucket-name'
}

const store = new S3Store(credentials)

const client = new Client({
    authStrategy: new RemoteAuth({
        store: store,
        backupSyncIntervalMs: 300000
    })
});

client.initialize();
1.0.4

8 months ago

1.0.3

8 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago