A library for retrieving a Slack user token and cookies from an authenticated Slack application.
$ python3 -m pip install slacktoken
$ python3 -m slacktoken get --workspace my-workspace
xoxs-12345678910-...
d=...
>>> import slacktoken.token
>>> authentication_information = slacktoken.token.get("my-workspace")
>>> authentication_information.token
'xoxs-12345678910-...'
>>> authentication_information.cookies
{'d': '...'}