chore(manager): upgrade AuthBlocks to 10.3.33; migrate ITokenService → IAuthSession, SystemRoleConstants, hoist usings to _Imports

This commit is contained in:
Daniel Harvey
2026-05-22 23:33:25 -04:00
parent 770baffb88
commit e73b3c3218
8 changed files with 15 additions and 19 deletions
@@ -2,7 +2,7 @@
@using System.Net.Http.Headers
@using Microsoft.AspNetCore.Components
@inject IHttpClientFactory HttpClientFactory
@inject AuthBlocksWeb.Services.ITokenService TokenService
@inject IAuthSession AuthSession
<MudDialog>
<DialogContent>
@@ -51,7 +51,7 @@
try
{
var client = HttpClientFactory.CreateClient("DeepDrft.API");
var token = await TokenService.GetAccessTokenAsync();
var token = await AuthSession.GetValidTokenAsync();
if (!string.IsNullOrEmpty(token))
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", token);
var response = await client.DeleteAsync($"api/cms/track/{TrackId}");