Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

baileys-mongodb

Package Overview
Dependencies
Maintainers
0
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

baileys-mongodb

mongodb external session for baileys

  • 1.0.5
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
312
increased by87.95%
Maintainers
0
Weekly downloads
 
Created
Source

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

Baileys Session (MongoDB)

multi session baileys created on mongodb 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#mongodb"

version npm

"session": "npm:baileys-mongodb"
{
    "name": "myproject",
    "version": "1.0.1",
    "author": "Sherly",
    "dependencies": {
        "session": "github:amiruldev20/baileys-session#mongodb"
        // and other your depen
    }
}

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

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

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

// next code (support all)
const { state, saveCreds, clear, removeCreds, query } =
    await useMongoAuthState("urlmongo", {})

Note:

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

Keywords

FAQs

Package last updated on 12 Nov 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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc