Skip to content

Improve authentication error handling for package fetching#1116

Merged
ericmj merged 1 commit intomainfrom
improve-auth-error-handling
Mar 14, 2026
Merged

Improve authentication error handling for package fetching#1116
ericmj merged 1 commit intomainfrom
improve-auth-error-handling

Conversation

@ericmj
Copy link
Copy Markdown
Member

@ericmj ericmj commented Mar 14, 2026

Warn instead of raising when OAuth authentication fails or is declined during dependency resolution since the user may only need public packages. Improve the prompt message when re-authentication is needed. Add 401 to the recognized error statuses in the registry server and suggest running mix hex.user auth when no authentication token is found.

Warn instead of raising when OAuth authentication fails or is declined
during dependency resolution since the user may only need public packages.
Improve the prompt message when re-authentication is needed. Add 401 to
the recognized error statuses in the registry server and suggest running
`mix hex.user auth` when no authentication token is found.
@ericmj ericmj merged commit ee2a27f into main Mar 14, 2026
20 checks passed
@ericmj ericmj deleted the improve-auth-error-handling branch March 14, 2026 17:36
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.

1 participant