Initial commit: Auth.Module

This commit is contained in:
Saidamin Kattan
2026-08-07 02:17:31 +03:00
commit f02e2cef31
354 changed files with 20239 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.AspNetCore.Components.Authorization;
using Blazored.LocalStorage;
using Auth.Module.Services;
namespace Auth.Module.Config
{
public static class AuthModuleExtensions
{
public static IServiceCollection AuthModuleServices(this IServiceCollection services)
{
services.AddScoped<AuthenticationStateProvider, ApiAuthenticationStateProvider>();
// services.AddScoped<IAuthService>(sp => (ApiAuthenticationStateProvider)sp.GetRequiredService<AuthenticationStateProvider>());
services.AddScoped<RoleAPIConsumer>();
services.AddScoped<UserAPIConsumer>();
return services;
}
}
}