-
Notifications
You must be signed in to change notification settings - Fork 62
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
Fix #86: Support multiple auth tokens #92
Conversation
* Add deprecation warning * Update logic to handle both `WATCHMAN_TOKEN` and `WATCHMAN_TOKENS`
* Restructure test classes * Add both valid and invalid token tests
e889bbd
to
1e143eb
Compare
else: | ||
watchman_tokens = [] | ||
|
||
if not watchman_tokens: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not set watchman_tokens = None
in line 74 and check if watchman_tokens is None
?
elif settings.WATCHMAN_TOKEN: | ||
watchman_tokens = [settings.WATCHMAN_TOKEN, ] | ||
else: | ||
watchman_tokens = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, can just return True
here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call.. thanks. 💃
LGTM 💯 |
WATCHMAN_TOKEN
andWATCHMAN_TOKENS
WATCHMAN_TOKEN