mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
3.6.1.0
This commit is contained in:
parent
a5d9bea0ab
commit
b84bfe2364
@ -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
|
||||
|
@ -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)
|
||||
@ -187,6 +188,7 @@ public class NexusApi
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user