Add hashing and other security features #12
9
Security/Common/Interfaces/IAccessToken.cs
Normal file
9
Security/Common/Interfaces/IAccessToken.cs
Normal 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);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user