first commit

This commit is contained in:
2025-02-26 23:42:19 +01:00
commit 777ea98be1
283 changed files with 88266 additions and 0 deletions
@@ -0,0 +1,27 @@
namespace OpenWarehouse.auth.api.Common.AuthTokenRepo;
public interface IAuthTokenRepo
{
public Task<bool> IsTokenLockAsync(string? token);
public bool IsTokenLock(string? token);
public Task<int> LockTokenAsync(string? token);
public Task<int> LockAllUserTokenAsync(ApplicationUser user);
public int LockToken(string token);
public Task<int> AddTokenToRepAsync(string token, string creator, DateTime exp, DateTime? created);
public Task<int> AddTokenToRepAsync(string token, ApplicationUser? creator, DateTime? exp, DateTime? created);
public Task<int> DeleteAllUserTokenAsync(ApplicationUser user);
public Task<string?> GetLastUserToken(ApplicationUser? user);
public Task<int> DeleteInactiveToken();
public Task<string?> CreateJwtToken(ApplicationUser user, DateTime? expires, List<Claim> claims);
public Task<string?> RegenerateJwtToken(string? token, DateTime? expires);
public Task<bool> TokenIsLock(string? token, string? guid);
}