# wwebjs-s3

> A S3 RemoteAuth strategy for whatsapp-web.js library

Latest version **1.0.4** (published 2023-09-21) · ISC license · 0 weekly downloads

## Install

```sh
npm install wwebjs-s3
pnpm add wwebjs-s3
yarn add wwebjs-s3
bun add wwebjs-s3
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities; high quality score.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4 |
| Published | 2023-09-21 |
| First published | 2023-08-15 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Felipe Martins |
| Maintainers | eufelipemartins |
| Keywords | s3, wwebjs, whatsapp-web.js, remote-auth |

## Links

- npm: https://www.npmjs.com/package/wwebjs-s3
- npm.io page: https://npm.io/package/wwebjs-s3

## Dependencies (1)

- [@aws-sdk/client-s3](https://npm.io/package/@aws-sdk/client-s3.md) ^3.391.0

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 1.0.4 (latest) — 2023-09-21
- 1.0.3 — 2023-09-20
- 1.0.2 — 2023-08-15
- 1.0.1 — 2023-08-15
- 1.0.0 — 2023-08-15

## README

# WhatsAppWeb.js AWS S3 Remote Auth Strategy

[![npm version](https://img.shields.io/npm/v/wwebjs-s3.svg)](https://www.npmjs.com/package/wwebjs-s3)
[![License](https://img.shields.io/npm/l/wwebjs-s3.svg)](https://github.com/mrfelipemartins/wwebjs-s3/blob/main/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:

```bash
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:

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

---
_Source: https://npm.io/package/wwebjs-s3 · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
