after refactor cleanup

This commit is contained in:
2025-11-28 11:21:22 +01:00
parent 5db6de1503
commit 07423023a0
305 changed files with 80 additions and 13326 deletions

View File

@@ -0,0 +1,30 @@
using Microsoft.JSInterop;
namespace DiunaBI.UI.Shared.Services;
/// <summary>
/// Web implementation of Google authentication using JavaScript SDK
/// </summary>
public class WebGoogleAuthService : IGoogleAuthService
{
private readonly IJSRuntime _jsRuntime;
public WebGoogleAuthService(IJSRuntime jsRuntime)
{
_jsRuntime = jsRuntime;
}
public async Task<bool> SignInAsync()
{
try
{
await _jsRuntime.InvokeVoidAsync("requestGoogleSignIn");
return true;
}
catch (Exception ex)
{
Console.WriteLine($"❌ Web Google Sign-In error: {ex.Message}");
return false;
}
}
}