Refactor auth/user services

This commit is contained in:
Aaron Po
2026-02-12 19:28:40 -05:00
parent caf13de36e
commit 954c9c389c
18 changed files with 98 additions and 55 deletions

View File

@@ -1,6 +1,6 @@
namespace Infrastructure.Jwt;
public interface IJwtService
public interface ITokenInfrastructure
{
string GenerateJwt(Guid userId, string username, DateTime expiry);
}

View File

@@ -6,7 +6,7 @@ using JwtRegisteredClaimNames = System.IdentityModel.Tokens.Jwt.JwtRegisteredCla
namespace Infrastructure.Jwt;
public class JwtService : IJwtService
public class JwtInfrastructure : ITokenInfrastructure
{
private readonly string? _secret = Environment.GetEnvironmentVariable(
"JWT_SECRET"