Format ./web/backend/Infrastructure/Infrastructure.Jwt

This commit is contained in:
Aaron Po
2026-06-20 15:13:02 -04:00
parent 744d4c7f8c
commit 62766b7638
3 changed files with 12 additions and 34 deletions

View File

@@ -15,12 +15,7 @@ public interface ITokenInfrastructure
/// <param name="expiry">The date and time at which the token expires.</param>
/// <param name="secret">The symmetric secret used to sign the token.</param>
/// <returns>The serialized, signed JWT string.</returns>
string GenerateJwt(
Guid userId,
string username,
DateTime expiry,
string secret
);
string GenerateJwt(Guid userId, string username, DateTime expiry, string secret);
/// <summary>
/// Validates a JWT and returns the resulting claims principal.
@@ -33,4 +28,4 @@ public interface ITokenInfrastructure
/// validation.
/// </exception>
Task<ClaimsPrincipal> ValidateJwtAsync(string token, string secret);
}
}