Closed c0nf1ck closed 2 years ago
just use this code in create:
client.getSessionTokenBrowser().then((result) => { require('fs').writeFile("./tokens/"+client.session+".data.json", JSON.stringify(result), function(err) { if(err) return console.error(err); }); }).catch((error) => { console.error(error)});
Description
As mentioned in #1292 , when using the browserWS option, the token to automatically reconnect are not saved
Environment
Steps to Reproduce
docker run -d --restart unless-stopped -p 5000:3000 -e "MAX_CONCURRENT_SESSIONS=1" browserless/chrome:latest
There's no token saved.
Log Output
Your Code
Additional context / Screenshot
Add any other context about the problem here. If applicable, add screenshots to help explain.