#Problem with exodus session reconnection
10 messages · Page 1 of 1 (latest)
Revelant code
How do I do it? Before, the web cache was stored in another folder, which I assume would allow me to restore the session, with the indicated changes the type is none, therefore, the auth is effectively saved but it does not allow me if my service restarts, for example, from me authentication restore session
Show your code
Are you getting logout after authentication?
Send logs
When connecting a phone, exchanging messages, etc. No problem. Then when my backend restarts for x reason, I can't reconnect the phone, I have to scan the QR again. Previously, the connection could be resumed. const client = new Client({
authStrategy: new LocalAuth({ clientId: clientId }),
puppeteer: { args: [
'--no-sandbox',
'--no-experiments',
'--hide-scrollbars',
'--disable-plugins',
'--disable-infobars',
'--disable-translate',
'--disable-pepper-3d',
'--disable-extensions',
'--disable-dev-shm-usage',
'--disable-notifications',
'--disable-setuid-sandbox',
'--disable-crash-reporter',
'--disable-smooth-scrolling',
'--disable-login-animations',
'--disable-dinosaur-easter-egg',
'--disable-accelerated-2d-canvas',
'--disable-rtc-smoothness-algorithm'
]},
//webVersion: ${wwebVersion},
webVersionCache: {
type: 'none',
/*
remotePath: https://raw.githubusercontent.com/wppconnect-team/wa-version/main/html/${wwebVersion}.html,*/
},
Check your clientID it must be simple
The client ID is a simple identifier, and allows working with the library without problems. My problem begins when I need the created session to reconnect without having to scan the QR again and delete the auth folder. I don't know if I can explain my mistake, I'm translating my answer.
If you delete auth folder you will need to read the qr again