Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Return 404 instead of 401 in release mode #55

Open
chunningham opened this issue Sep 9, 2021 · 1 comment
Open

Return 404 instead of 401 in release mode #55

chunningham opened this issue Sep 9, 2021 · 1 comment

Comments

@chunningham
Copy link
Contributor

401 messages give away quite a bit of information. In production, this should be sanitized or converted to a 404 message.

@grdsdev
Copy link

grdsdev commented Sep 10, 2021

If the API returns 401 the client side can provide a better UX, like automatically initiating the refresh flow.

Can't we just return a generic message on the 401?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants