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

[FEATURE] Raise ENEEDAUTH error if doing a write to something other than login #38

Open
isaacs opened this issue Feb 4, 2021 · 0 comments
Assignees

Comments

@isaacs
Copy link
Contributor

isaacs commented Feb 4, 2021

If making a PUT/DELETE (and maybe POST?) to any endpoint other than the login endpoints, if auth can't be found in the config, raise an ENEEDAUTH error.

This would allow us to remove some duplicative checks from npm/cli, and also catch any cases we've missed where the user will end up getting a 403 or 401.

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