Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regexp token slackbot invalid #4

Closed
josephbedminster opened this issue Jun 5, 2017 · 1 comment
Closed

Regexp token slackbot invalid #4

josephbedminster opened this issue Jun 5, 2017 · 1 comment

Comments

@josephbedminster
Copy link

Hi,
I'm using your package, and my slack-token is :
xxxx-000000000000-000000000000000000000000
It doesn't match with regexp in index.js line 40 :
if (typeof accessToken !== 'string' || !accessToken.match(/^([a-z]{4})-([0-9]{11})-([0-9a-zA-Z]{24})$/)) {
Token may be 11 or 12 characters long in the middle, like :
/^([a-z]{4})-([0-9]{11,12})-([0-9a-zA-Z]{24})$/

@philliphenslee
Copy link
Owner

This is a little delayed, but thanks for finding this. A the time of development I could not find solid documentation on the specifics of the token format. Code updated and released v.1.2.1 with the fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants