Closed goldcoders closed 3 years ago
To make it clear this PR, still cant Catch the PostgresError Exception...
I need to dig deeper on to the code, but i hope the supabase team , can show the right direction...
Using Try catch block is useless when using supabaseClient
I Hope the Error Would Bubble Up to the The Top Level ERROR HANDLER. which can be caught by the try catch block....
It seems that the supabase client is not throwing any error, as supposed to be so the dev can handle it for Example a Token Expiration is hard to Detect...
Supposed to be when a User Token Expired It Would be intercepted when an exception is thrown. and that would be handle to trigger a Token refresh...
Expose PostgrestError so we can use it on a try catch block