mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix refreshing Nexus OAuth token not working properly
This commit is contained in:
parent
6dde81ec7c
commit
84f393a68a
@ -273,6 +273,8 @@ public class NexusApi
|
||||
var response = await _client.PostAsync($"https://users.nexusmods.com/oauth/token", content, cancel);
|
||||
var responseString = await response.Content.ReadAsStringAsync(cancel);
|
||||
var newJwt = JsonSerializer.Deserialize<JwtTokenReply>(responseString);
|
||||
if (newJwt != null)
|
||||
newJwt.ReceivedAt = DateTime.UtcNow.ToFileTimeUtc();
|
||||
|
||||
state.OAuth = newJwt;
|
||||
await AuthInfo.SetToken(state);
|
||||
|
Loading…
Reference in New Issue
Block a user