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))