From 6c68391083efa4eac2e1be2ed3a845418240abf6 Mon Sep 17 00:00:00 2001 From: Denis Nutiu Date: Tue, 24 Nov 2020 19:03:32 +0200 Subject: [PATCH] TelemetryPublisherFirestore.cs: Reformat --- NucuCar.Telemetry/Publishers/TelemetryPublisherFirestore.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NucuCar.Telemetry/Publishers/TelemetryPublisherFirestore.cs b/NucuCar.Telemetry/Publishers/TelemetryPublisherFirestore.cs index 03b13cb..0bec8f9 100644 --- a/NucuCar.Telemetry/Publishers/TelemetryPublisherFirestore.cs +++ b/NucuCar.Telemetry/Publishers/TelemetryPublisherFirestore.cs @@ -100,7 +100,7 @@ namespace NucuCar.Telemetry.Publishers Logger?.LogDebug($"{response?.Content}"); } } - + private async Task CheckAndSetupAuthorization() { // If there are no credentials or partial credentials supplies there must be no authorization. @@ -108,6 +108,7 @@ namespace NucuCar.Telemetry.Publishers { return; } + // Check if the token is about to expire in the next 5 minutes. if (DateTime.UtcNow.AddMinutes(5) < _authorizationExpiryTime) {