Skip to content

Commit

Permalink
3.6.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
halgari committed May 27, 2024
1 parent a5d9bea commit b84bfe2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
### Changelog

#### Version - 3.6.1.0 - TBD
#### Version - 3.6.1.0 - 5/26/2024
* Fixed a race condition on renewing Nexus Mods OAuth2 tokens
* Added `set-nexus-api-key` CLI command
* Added Starfield meta data
* Added Fallout New Vegas Epic Games meta data
* Added Fallout New Vegas Epic Games metadata

#### Version - 3.6.0.0 - 5/25/2024
* Wabbajack now uses OAuth2 for Nexus Mods logins
Expand Down
2 changes: 2 additions & 0 deletions Wabbajack.Networking.NexusApi/NexusApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public class NexusApi
public readonly ITokenProvider<NexusOAuthState> AuthInfo;
private DateTime _lastValidated;
private (ValidateInfo info, ResponseMetadata header) _lastValidatedInfo;
private AsyncLock _authLock = new();

public NexusApi(ITokenProvider<NexusOAuthState> authInfo, ILogger<NexusApi> logger, HttpClient client,
IResource<HttpClient> limiter, ApplicationInfo appInfo, JsonSerializerOptions jsonOptions)
Expand Down Expand Up @@ -187,6 +188,7 @@ protected virtual ResponseMetadata ParseHeaders(HttpResponseMessage result)
protected virtual async ValueTask<HttpRequestMessage> GenerateMessage(HttpMethod method, string uri,
params object?[] parameters)
{
using var _ = await _authLock.WaitAsync();
var msg = new HttpRequestMessage();
msg.Method = method;

Expand Down

0 comments on commit b84bfe2

Please sign in to comment.