feat: add interface for gen access token

This commit is contained in:
Polianin Nikita 2024-05-29 05:29:25 +03:00
parent 470031af39
commit d3a60d2a30

View File

@ -0,0 +1,9 @@
using System;
namespace Mirea.Api.Security.Common.Interfaces;
public interface IAccessToken
{
(string Token, DateTime ExpireIn) GenerateToken(string userId);
DateTimeOffset GetExpireDateTime(string token);
}