Socket
Book a DemoInstallSign in
Socket

baileys-mysql

Package Overview
Dependencies
Maintainers
0
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baileys-mysql

MySQL external session for Baileys

1.0.4
latest
Source
npmnpm
Version published
Weekly downloads
27
-50.91%
Maintainers
0
Weekly downloads
 
Created
Source

-----------------------------------------------------

Baileys Session (Mysql)

multi session baileys created on mysql databases

JOIN GROUP

how to use ?

First, you need to add the session package in package.json. You can use the github or npm version

version github

"session": "github.com/amiruldev20/baileys-session#mysql"

version npm

"session": "npm:baileys-mysql@latest"
{
    "name": "myproject",
    "version": "1.0.1",
    "author": "sanzydev",
    "dependencies": {
        "session": "github:amiruldev20/baileys-session#mysql"
        // and other your depen
    }
}

Second step, please call the useMongoAuthState function on your client. Example code is below

// for esm import
import { useSqlAuthState } from "session"

// for cjs import
const { useSqlAuthState } = require("session")

// next code (support all)
const config = {
        host: 'host',
        user: 'user',
        password: 'password',
        database: 'dbname'
    };

    const { state, saveCreds, clear, removeCreds, query } = await useSqlAuthState(config);

Note:

If there are bugs, please report & open an issue in the main repo.

Keywords

baileys session

FAQs

Package last updated on 31 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.