4
Export Error Codes
Source: supabase/supabase#30599 · opened by @julio-salas03
Following up on I think it would be a nice feature if the [@supabase/auth-js]( could export an object with all known error codes, as that would allow for the following type of error validation:
I would like to note that this is currently possible if you define the object yourself, but it would be better if the package could provide the errors itself. It should be a really simple thing to add and in fact I have some local changes ready to send a PR, but I wanted to file a feature request first so you guys can let me know if it's acceptable.
If you found this issue looking for an object like this, I already mapped the codes in [this gist]( taking the data from [Supabase's official documentation](
I would like to note that this is currently possible if you define the object yourself, but it would be better if the package could provide the errors itself. It should be a really simple thing to add and in fact I have some local changes ready to send a PR, but I wanted to file a feature request first so you guys can let me know if it's acceptable.
If you found this issue looking for an object like this, I already mapped the codes in [this gist]( taking the data from [Supabase's official documentation](
No pledges yet. Be the first to back this.
Comments
Similar requests
Standardize Error Codes Across Supabase Ecosystem
1 vote · 0 comments
Send error codes for errors
3 votes · 0 comments
Make `error` codes non-optional for better error handling on the client side
4 votes · 0 comments
Standardize CRUD errors returned
1 vote · 0 comments
Export SQL statements in Table Editor
9 votes · 0 comments
No comments yet.