Open DominicGBauer opened 2 weeks ago
Which module has this code
error field? Postgrest?
Alright, I think the best way is to add a custom exception for Postgrest (like the AuthRestException
) exposing these properties.
But nonetheless, we can also expose the whole response in the RestException
s in general.
I'll take a look at it and see if we can make it into 3.1.0
.
General Info
Feature request
Please can the
response
be included in theRestException
as I need access to thecode
that is in the response?(Similar change happened here https://github.com/supabase-community/supabase-kt/commit/d3ee40fd5c81a7cfd02fc12f4b6c5da7ccaabd04)
Usecase
I currently need to use this interceptor to get access to the code from the response to be used in my error catch:
Ideally, I could just do something like this