FeatureFuel
4

Make `error` codes non-optional for better error handling on the client side

Source: supabase/supabase#22671 · opened by @VValiente
Upon implementing the authentication, I encountered AuthError and APIError types with properties having inconsistent availability. Sometimes, only code is available, other times, only msg. In this example, error and errorDescription are present but not the code and msg. This is why many frontend developers resolve to generic error messages because backend error message handling is often a mess. Trying to identify different types of errors is such a pain and I've only implemented the Auth part. I already have a long list of conditions trying to catch which property has value. And even though there is sometimes human-readable error description, I assume they are not localized, are only intended for us developers, and are not meant to be shown directly to users. I also cannot find a list of possible errors on the docs page. Or did I just miss it? If I did, can someone please tag me with the links? thank you. PROPOSAL Make error non-optional, or whatever property that …

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests