Skip to content

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

@isaacs

Description

@isaacs

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions