add some debug info
All checks were successful
Build Docker Images / test (push) Successful in 1m14s
Build Docker Images / build-and-push (push) Successful in 1m37s

This commit is contained in:
2025-11-19 17:30:36 +01:00
parent c0a1945465
commit 66a9b975a5
3 changed files with 44 additions and 5 deletions

View File

@@ -36,7 +36,6 @@ public class AuthService
{
Console.WriteLine($"=== ValidateWithBackend: Sending Google credential for {email} ===");
// Wyślij Google credential do backendu
var response = await _httpClient.PostAsJsonAsync("Auth/apiToken", googleCredential);
if (response.IsSuccessStatusCode)
@@ -53,11 +52,9 @@ public class AuthService
AvatarUrl = avatarUrl
};
// Zapisz do localStorage
await _jsRuntime.InvokeVoidAsync("localStorage.setItem", "api_token", _apiToken);
await _jsRuntime.InvokeVoidAsync("localStorage.setItem", "user_info", JsonSerializer.Serialize(_userInfo));
// Ustaw header dla przyszłych requestów
_httpClient.DefaultRequestHeaders.Authorization =
new System.Net.Http.Headers.AuthenticationHeaderValue("Bearer", _apiToken);