Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions Gotrue/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down