using Microsoft.Extensions.DependencyInjection;
namespace GB5Shared.Auth.Jwt
{
///
/// Registers the shared JWT issuance mechanics (IJwtAccessTokenIssuer, IJwtSigningKeyResolver).
/// Requires AddGB5Vault(configuration) to have already been called — this only wires
/// the JWT-specific layer on top of the already-registered IVaultService.
/// Call once per host: builder.Services.AddGB5JwtIssuer();
///
public static class JwtIssuerServiceExtensions
{
public static IServiceCollection AddGB5JwtIssuer(this IServiceCollection services)
{
services.AddSingleton();
services.AddSingleton();
return services;
}
}
}