supabase-go
supabase-go copied to clipboard
JWT Token expired Issue
When using the client.Auth.User() function, if the JWT token is expired, the returned error is initialized but without the internal Error() function, meaning the error is not nil and there's no message.
I had to verify the value returned variable for error handling instead:
hmm i think I got the same problem here..... 🤔 🤔
Sounds a bit like the issue I was having and fixed in my fork
https://github.com/emilkm/supabase-go/tree/recover_redirect_to
https://github.com/emilkm/supabase-go/blob/833087b0a28227ebb89aa4e7aec745f163fd7114/supabase.go#L104
With that change I can get the error, error_code, and error_description in ma app code and do whatever I need.