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.
Comments
Similar requests
Standardize Error Codes Across Supabase Ecosystem
1 vote · 0 comments
Export Error Codes
4 votes · 0 comments
Feture Request: Want to get some part of data encrypted via RSA Private keys to avoid client side data manipulation
1 vote · 0 comments
Improved Error Handling
1 vote · 0 comments
Send error codes for errors
3 votes · 0 comments
No comments yet.