mirror of
https://gitee.com/iioter/iotgateway.git
synced 2024-12-02 11:47:52 +08:00
31 lines
784 B
C#
31 lines
784 B
C#
using System.Threading.Tasks;
|
|
using WalkingTec.Mvvm.Core;
|
|
|
|
namespace WalkingTec.Mvvm.Mvc.Auth
|
|
{
|
|
public interface ITokenService
|
|
{
|
|
IDataContext DC { get; }
|
|
|
|
/// <summary>
|
|
/// Issue token
|
|
/// </summary>
|
|
/// <param name="loginUserInfo"></param>
|
|
/// <returns></returns>
|
|
Task<Token> IssueTokenAsync(LoginUserInfo loginUserInfo);
|
|
|
|
/// <summary>
|
|
/// refresh token
|
|
/// </summary>
|
|
/// <param name="refreshToken">refreshToken</param>
|
|
/// <returns></returns>
|
|
Task<Token> RefreshTokenAsync(string refreshToken);
|
|
|
|
/// <summary>
|
|
/// clear expired refresh tokens
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
Task ClearExpiredRefreshTokenAsync();
|
|
}
|
|
}
|