chore: remove OpenApi and configure JWT authentication schemes

This commit is contained in:
Stevan Freeborn
2026-02-03 21:04:25 -06:00
parent a3264bd72d
commit 3fbd9402c3
5 changed files with 40 additions and 3 deletions
@@ -5,12 +5,17 @@ public static class ServiceCollectionExtensions
public static IServiceCollection AddInfrastructure(this IServiceCollection services)
{
services.AddSingleton(TimeProvider.System);
services.ConfigureOptions<JwtOptionsSetup>();
services.ConfigureOptions<JwtBearerOptionsSetup>();
services.AddSingleton<ITokenGenerator, TokenGenerator>(TokenGenerator.From);
services.AddSingleton<IPasswordHasher, PasswordHasher>(PasswordHasher.From);
services.ConfigureOptions<AppDbContextOptionsSetup>();
services.AddDbContext<AppDbContext>();
services.AddHostedService<MigrationService>();
return services;
}
}