supabase-community / gotrue-csharp

C# implementation of Supabase's GoTrue
https://supabase-community.github.io/gotrue-csharp/api/Supabase.Gotrue.Client.html
MIT License
39 stars 27 forks source link

Fix RefreshToken() #106

Open maverikou opened 1 month ago

maverikou commented 1 month ago

What kind of change does this PR introduce?

Refresh token never expires. Don't need to check for session expiration when refreshing. This fixes a bug making it impossible to recover a session after the client has been offline for longer than the expiry time of the access token.

What is the current behavior?

Can't use a refresh token beyond the expiry time of the access token.

What is the new behavior?

Client can now try to refresh the access token for as long as it holds the refresh token.