You got a username, password, and workspace for Slack. You want a magic link. This tool will get one for you by manually navigating to Slack and getting a magic link. It's using puppeteer to perform the automation.
I recommend using this tool with npx. Passing -q
to npx will
suppress Chrome's download status and is optional.
npx -q get-slack-magic-link -e [email protected] -p myPassword -w myWorkspace
Alternative usage:
npx -q get-slack-magic-link --email [email protected] --password myPassword --workspace myWorkspace
npx -q get-slack-magic-link [email protected] myPassword myWorkspace
To enable debugging, pass a --debug
parameter. It'll show Chrome running and will slow operations
down by 250ms.
const { getMagicLink } = require('get-slack-magic-link');
async myFunction() {
const magicLink = await getMagicLink(email, password, workspace);
}
MIT