From fd3eb80648284897febca88d0bb29681062ea6c9 Mon Sep 17 00:00:00 2001 From: Gary Sharp Date: Mon, 10 Mar 2025 14:35:57 +1100 Subject: [PATCH] bug fix: online services authentication token not expiring --- .../Interop/DiscoServices/OnlineServicesAuthentication.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Disco.Services/Interop/DiscoServices/OnlineServicesAuthentication.cs b/Disco.Services/Interop/DiscoServices/OnlineServicesAuthentication.cs index 483e6cf9..2f3eb31d 100644 --- a/Disco.Services/Interop/DiscoServices/OnlineServicesAuthentication.cs +++ b/Disco.Services/Interop/DiscoServices/OnlineServicesAuthentication.cs @@ -105,7 +105,7 @@ namespace Disco.Services.Interop.DiscoServices throw new InvalidOperationException($"Failed to authenticate ({authResponse.ErrorMessage})"); token = authResponse.Token; - tokenExpires = DateTime.Now.AddSeconds(authResponse.ExpiresInSeconds.Value); + tokenExpires = DateTime.UtcNow.AddSeconds(authResponse.ExpiresInSeconds.Value); return token; }