11 lines
377 B
C#
11 lines
377 B
C#
|
|
using WatchIt.Database.Model.Account;
|
|||
|
|
|
|||
|
|
namespace WatchIt.WebAPI.Services.Utility.Tokens;
|
|||
|
|
|
|||
|
|
public interface ITokensService
|
|||
|
|
{
|
|||
|
|
Task<string> CreateRefreshTokenAsync(Account account, bool extendable);
|
|||
|
|
Task<string> ExtendRefreshTokenAsync(Account account, Guid id);
|
|||
|
|
Task<string> CreateAccessTokenAsync(Account account);
|
|||
|
|
string CreateAccessToken(Account account);
|
|||
|
|
}
|