.NET 10 and few minor things
This commit is contained in:
@@ -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}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user