We are using Node.js Puppeteer core for a bot that requires two-factor authentication the first time it runs. We migrated the code to AWS Lambda for cost savings, but we encountered a problem: when Lambda creates a new container for every request, it requires authentication each time.
Is there a way to use the same Chromium browser for every new request in Lambda to avoid logging in again and again?
Thank you in advance!
We used data dir option to use same data for browser.
Karan Mahajan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.