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

Properly error on wrong token and handle team #1073

Merged
merged 2 commits into from Jan 14, 2018
Merged

Properly error on wrong token and handle team #1073

merged 2 commits into from Jan 14, 2018

Conversation

leo
Copy link
Contributor

@leo leo commented Jan 14, 2018

This PR ensures we're not using the team from the config if --token was passed. In addition, a invalid token now leads to a proper error.

This closes #1072.

@leo leo requested a review from rauchg January 14, 2018 10:58

// Don't use team from config if `--token` was set
if (ctx.config.sh && ctx.config.sh.currentTeam) {
delete ctx.config.sh.currentTeam
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a fan of changing the source of truth. I think that should be handled by the consumer of this function.

@leo leo merged commit 28069be into canary Jan 14, 2018
@leo leo deleted the fix-token branch January 14, 2018 11:08
@timneutkens
Copy link
Member

Thanks @leo sounds like exactly what I noticed earlier this week 👌

leo added a commit that referenced this pull request Jan 14, 2018
* Properly error on wrong token and handle team

* Better wording
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

Successfully merging this pull request may close these issues.

Token authentication for rm appears to be broken
3 participants