mirror of
https://github.com/4sval/FModel.git
synced 2026-09-13 03:56:43 -05:00
fix for invalid access token
This commit is contained in:
Submodule CUE4Parse updated: 527b0552a7...610bb2d2a5
@@ -62,7 +62,7 @@ public class EpicApiEndpoint : AbstractApiProvider
|
||||
if (string.IsNullOrEmpty(UserSettings.Default.LastAuthResponse.AccessToken)) return true;
|
||||
var request = new FRestRequest("https://account-public-service-prod.ol.epicgames.com/account/api/oauth/verify");
|
||||
request.AddHeader("Authorization", $"bearer {UserSettings.Default.LastAuthResponse.AccessToken}");
|
||||
var response = await _client.ExecuteAsync(request).ConfigureAwait(false);
|
||||
return response.StatusCode != HttpStatusCode.OK;
|
||||
var response = await _client.ExecuteGetAsync(request).ConfigureAwait(false);
|
||||
return !response.IsSuccessful;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user