Baileys Session (Firebase)
multi session baileys created on firebase 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#firebase"
version npm
"session": "npm:baileys-firebase"
{
"name": "myproject",
"version": "1.0.1",
"author": "Sherly",
"dependencies": {
"session": "github:amiruldev20/baileys-session#firebase"
}
}
Second step, please call the useFireAuthState function on your client. Example code is below
import { useFireAuthState } from "session"
const { useFireAuthState } = require("session")
const { state, saveCreds, clear, removeCreds, query } =
await useFireAuthState({})
Note:
If there are bugs, please report & open an issue in the main repo.