feat(core): add password hashing and token generation interfaces

This commit is contained in:
Stevan Freeborn
2026-02-02 13:19:36 -06:00
parent 7d5fd4149c
commit dcc5b2e0f0
7 changed files with 161 additions and 2 deletions
@@ -0,0 +1,7 @@
namespace FiscalOS.Core.Authentication;
public interface IPasswordHasher
{
string Hash(string password);
bool Verify(string providedPassword, string hashedPassword);
}
@@ -0,0 +1,7 @@
namespace FiscalOS.Core.Authentication;
public interface ITokenGenerator
{
string GenerateAccessToken(User user);
RefreshToken GenerateRefreshToken(User user);
}