auth-js icon indicating copy to clipboard operation
auth-js copied to clipboard

feat: add support for error codes

Open hf opened this issue 1 year ago • 0 comments

Adds support for error codes. All AuthError descendants will now have a code property which will encode (when present and supported by the server) the reason why the error occurred.

To support this, the library will now advertise X-Supabase-Api-Version: 2024-01-01 which is the first version of a new versioning strategy that supports a different encoding for error responses.

See:

  • https://github.com/supabase/gotrue/pull/1377

hf avatar Feb 24 '24 16:02 hf