From 4c95f8f0c54cc5e6723841c978ac785ca1326e2d Mon Sep 17 00:00:00 2001 From: Daniel Cardenas Date: Mon, 23 May 2022 02:52:54 -0500 Subject: [PATCH] Update README.md (#1652) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ef37949..96ec12f 100644 --- a/README.md +++ b/README.md @@ -145,7 +145,7 @@ import * as fs from 'fs' // utility function to help save the auth state in a single folder // this function serves as a good guide to help write auth & key states for SQL/no-SQL databases, which I would recommend in any production grade system -const { state, saveState } = useMultiFileAuthState('auth_info_baileys') +const { state, saveCreds } = useMultiFileAuthState('auth_info_baileys') // will use the given state to connect // so if valid credentials are available -- it'll connect without QR const conn = makeWASocket({ auth: state })