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