feat: add token revocation
This commit is contained in:
		
							
								
								
									
										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); | ||||
| } | ||||
		Reference in New Issue
	
	Block a user