From ffd50da0e45df6d1c5c27bff4a5b459f201fd7ef Mon Sep 17 00:00:00 2001 From: crupest Date: Wed, 28 Apr 2021 17:16:45 +0800 Subject: ... --- BackEnd/Timeline/Services/Token/IUserTokenManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'BackEnd/Timeline/Services/Token/IUserTokenManager.cs') diff --git a/BackEnd/Timeline/Services/Token/IUserTokenManager.cs b/BackEnd/Timeline/Services/Token/IUserTokenManager.cs index c6eaa5b7..bdc1add3 100644 --- a/BackEnd/Timeline/Services/Token/IUserTokenManager.cs +++ b/BackEnd/Timeline/Services/Token/IUserTokenManager.cs @@ -18,7 +18,7 @@ namespace Timeline.Services.Token /// Thrown when is of bad format. /// Thrown when the user with does not exist. /// Thrown when is wrong. - public Task CreateToken(string username, string password, DateTime? expireAt = null); + public Task CreateTokenAsync(string username, string password, DateTime? expireAt = null); /// /// Verify a token and get the saved user info. This also check the database for existence of the user. @@ -30,6 +30,6 @@ namespace Timeline.Services.Token /// Thrown when the token is of bad version. /// Thrown when the token is of bad format. /// Thrown when the user specified by the token does not exist. Usually the user had been deleted after the token was issued. - public Task VerifyToken(string token); + public Task VerifyTokenAsync(string token); } } -- cgit v1.2.3