shopping-assistant-api/ShoppingAssistantApi.Application/IServices/Identity/ITokensService.cs
2023-09-22 23:02:20 +03:00

13 lines
387 B
C#

using ShoppingAssistantApi.Application.Models.Identity;
using System.Security.Claims;
namespace ShoppingAssistantApi.Application.IServices.Identity;
public interface ITokensService
{
string GenerateAccessToken(IEnumerable<Claim> claims);
string GenerateRefreshToken();
Task<TokensModel> RefreshUserAsync(TokensModel tokensModel, CancellationToken cancellationToken);
}