profileShare

rasmusjy / splitapp-backend-clean-onion

Read-only snapshot

No repository description.

main default branch 429 files Expires Sep 13, 2026, 9:06 AM
IRefreshTokenRepository.cs 466 bytes
1 using App.Domain.Identity;
2 using Base.Contracts;
3
4 namespace App.Domain.Contracts;
5
6 public interface IRefreshTokenRepository : IBaseRepository<AppRefreshToken>
7 {
8 Task<IEnumerable<AppRefreshToken>> GetUserActiveTokensAsync(Guid userId, string refreshTokenValue);
9 Task<IEnumerable<AppRefreshToken>> GetUserTokensByValueAsync(Guid userId, string refreshTokenValue);
10 Task<int> RemoveExpiredForUserAsync(Guid userId);
11 void Remove(AppRefreshToken token);
12 }
13