feat: add token revocation
This commit is contained in:
parent
81f2f995b0
commit
79fb05d428
10
Security/Common/Interfaces/IRevokedToken.cs
Normal file
10
Security/Common/Interfaces/IRevokedToken.cs
Normal 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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user