Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JWT Token expired Issue #27

Open
joaojhgs opened this issue Sep 18, 2023 · 2 comments
Open

JWT Token expired Issue #27

joaojhgs opened this issue Sep 18, 2023 · 2 comments

Comments

@joaojhgs
Copy link

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:
image

@ipoool
Copy link

ipoool commented Dec 4, 2023

hmm i think I got the same problem here..... 🤔 🤔

@emilkm
Copy link

emilkm commented Apr 8, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants