FeatureFuel
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](

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