Skip to content

mrfelipemartins/wwebjs-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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();

About

A S3 RemoteAuth strategy for whatsapp-web.js library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published