.NET 10 and few minor things
Some checks failed
Build Docker Images / test (push) Failing after 28s
Build Docker Images / build-and-push (push) Successful in 1m44s

This commit is contained in:
2025-11-19 12:33:37 +01:00
parent c6a777c245
commit f30a8a74ff
21 changed files with 971 additions and 75 deletions

View File

@@ -59,20 +59,26 @@
try
{
if (_isInitialized) return;
var clientId = Configuration["GoogleAuth:ClientId"];
Console.WriteLine($"🔍 Reading GoogleAuth:ClientId from configuration: '{clientId}'");
if (string.IsNullOrEmpty(clientId))
{
throw new Exception("Google ClientId is not configured.");
_errorMessage = "Google ClientId is not configured in appsettings.";
Console.Error.WriteLine("❌ Google ClientId is NULL or EMPTY in configuration!");
return;
}
Console.WriteLine($"✅ Calling initGoogleSignIn with clientId: {clientId}");
await JS.InvokeVoidAsync("initGoogleSignIn", clientId);
_isInitialized = true;
}
catch (Exception ex)
{
_errorMessage = "Błąd inicjalizacji Google Sign-In.";
Console.Error.WriteLine($"Google Sign-In initialization error: {ex.Message}");
Console.Error.WriteLine($"Google Sign-In initialization error: {ex.Message}");
Console.Error.WriteLine($"Stack trace: {ex.StackTrace}");
}
}