bug fix: online services authentication token not expiring

This commit is contained in:
Gary Sharp
2025-03-10 14:35:57 +11:00
parent 9a171a8417
commit fd3eb80648
@@ -105,7 +105,7 @@ namespace Disco.Services.Interop.DiscoServices
throw new InvalidOperationException($"Failed to authenticate ({authResponse.ErrorMessage})"); throw new InvalidOperationException($"Failed to authenticate ({authResponse.ErrorMessage})");
token = authResponse.Token; token = authResponse.Token;
tokenExpires = DateTime.Now.AddSeconds(authResponse.ExpiresInSeconds.Value); tokenExpires = DateTime.UtcNow.AddSeconds(authResponse.ExpiresInSeconds.Value);
return token; return token;
} }