Refactor authentication services and implement JWT validation logic

This commit is contained in:
Aaron Po
2026-02-26 23:44:52 -05:00
parent 0ab2eaaec9
commit 250e5f2c9c
7 changed files with 106 additions and 24 deletions

View File

@@ -1,3 +1,5 @@
using System.Security.Claims;
namespace Infrastructure.Jwt;
public interface ITokenInfrastructure
@@ -8,4 +10,6 @@ public interface ITokenInfrastructure
DateTime expiry,
string secret
);
}
Task<ClaimsPrincipal> ValidateJwtAsync(string token, string secret);
}