feat: add token revocation

This commit is contained in:
Polianin Nikita 2024-05-29 05:54:45 +03:00
parent 81f2f995b0
commit 79fb05d428

View File

@ -0,0 +1,10 @@
using System;
using System.Threading.Tasks;
namespace Mirea.Api.Security.Common.Interfaces;
public interface IRevokedToken
{
Task AddTokenToRevokedAsync(string token, DateTimeOffset expiresIn);
Task<bool> IsTokenRevokedAsync(string token);
}