baileys-mongo
Version:
This package let you save in mongo the credentials to create whatsapp socket with Baileys package.
10 lines (9 loc) • 393 B
TypeScript
import { PrismaClient } from '@prisma/client';
import { useAuthHandlerResult } from '../../types';
export default class AuthHandler {
private readonly prismaCLient;
private readonly key;
constructor(prismaCLient: PrismaClient, key: string);
useAuthHandler: () => Promise<useAuthHandlerResult>;
deleteKeys: (storeKey: string, prismaCLient: PrismaClient) => Promise<void>;
}