11 lines
418 B
C#
11 lines
418 B
C#
using DataServer.Data;
|
|
|
|
namespace Server.Services.Auth;
|
|
|
|
public interface IAccountsRepository
|
|
{
|
|
Task<Account?> FindByUsernameAsync(string username, CancellationToken ct = default);
|
|
Task<Account?> FindByEmailAsync(string email, CancellationToken ct = default);
|
|
Task<Account> AddAsync(Account account, CancellationToken ct = default);
|
|
Task AddSessionAsync(Session s, CancellationToken ct = default);
|
|
} |