Skip to content

Commit

Permalink
Fix OAuth refresh attempt when no network available causing full logout
Browse files Browse the repository at this point in the history
  • Loading branch information
peppy committed Sep 25, 2023
1 parent 561f664 commit ecc8267
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion osu.Game/Online/API/OAuth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,14 @@ internal bool AuthenticateWithRefresh(string refresh)
return true;
}
}
catch (HttpRequestException)
{
// Network failure.
return false;
}
catch
{
//todo: potentially only kill the refresh token on certain exception types.
// Force a full re-reauthentication.
Token.Value = null;
return false;
}
Expand Down

0 comments on commit ecc8267

Please sign in to comment.