From e6a840c994e2d1e56a13226337a77abe7dec4661 Mon Sep 17 00:00:00 2001 From: maverikou Date: Tue, 8 Oct 2024 14:21:27 +0300 Subject: [PATCH] Fix RefreshToken(): refresh token never expires. Don't need to check for session expiration. --- Gotrue/Client.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/Gotrue/Client.cs b/Gotrue/Client.cs index 544ceeb..c420d0f 100644 --- a/Gotrue/Client.cs +++ b/Gotrue/Client.cs @@ -712,9 +712,6 @@ public async Task RefreshToken() if (CurrentSession == null || string.IsNullOrEmpty(CurrentSession?.AccessToken) || string.IsNullOrEmpty(CurrentSession?.RefreshToken)) throw new GotrueException("No current session.", NoSessionFound); - if (CurrentSession!.Expired()) - throw new GotrueException("Session expired", ExpiredRefreshToken); - var result = await _api.RefreshAccessToken(CurrentSession.AccessToken!, CurrentSession.RefreshToken!); if (result == null || string.IsNullOrEmpty(result.AccessToken))