Open leonetosoft opened 2 years ago
if admin login response 419, destroy the gob file and do login() again
@akbarfa49 I understand your answer, but that's exactly what I don't want to force the user to do. See whatsapp when you authenticate for the first time no longer need to validate your session. The correct thing is that the session is validated again as suggested by the api I put as an example. The question is how to do it ?
I'm having trouble restoring session after a few days of connected.
restoring failed: admin login response 419.
I read in this library: https://github.com/adiwajshing/Baileys
What:
"Note: Upon every successive connection, WA can update part of the stored credentials. Whenever that happens, the credentials are uploaded, and you should probably update your saved credentials upon receiving the open event. after a few weeks with a 419 error code.""
How to update the session using go-whatsapp? as I understand it, whatsapp requires session revalidation after a reconnection cycle.