aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Services/Token/UserTokenManager.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-28 17:16:45 +0800
committercrupest <crupest@outlook.com>2021-04-28 17:16:45 +0800
commit76ea7c9f7295f1507bc87154b36cc0f2ea22036e (patch)
treeed6e2b0e7dcad128bf9b971e74c233d23113e284 /BackEnd/Timeline/Services/Token/UserTokenManager.cs
parent344d189e5860a20ebe42cec03b86974a2a3aaa95 (diff)
downloadtimeline-76ea7c9f7295f1507bc87154b36cc0f2ea22036e.tar.gz
timeline-76ea7c9f7295f1507bc87154b36cc0f2ea22036e.tar.bz2
timeline-76ea7c9f7295f1507bc87154b36cc0f2ea22036e.zip
...
Diffstat (limited to 'BackEnd/Timeline/Services/Token/UserTokenManager.cs')
-rw-r--r--BackEnd/Timeline/Services/Token/UserTokenManager.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/BackEnd/Timeline/Services/Token/UserTokenManager.cs b/BackEnd/Timeline/Services/Token/UserTokenManager.cs
index 1d5348a5..5aa85a5e 100644
--- a/BackEnd/Timeline/Services/Token/UserTokenManager.cs
+++ b/BackEnd/Timeline/Services/Token/UserTokenManager.cs
@@ -26,7 +26,7 @@ namespace Timeline.Services.Token
_clock = clock;
}
- public async Task<UserTokenCreateResult> CreateToken(string username, string password, DateTime? expireAt = null)
+ public async Task<UserTokenCreateResult> CreateTokenAsync(string username, string password, DateTime? expireAt = null)
{
expireAt = expireAt?.MyToUtc();
@@ -51,7 +51,7 @@ namespace Timeline.Services.Token
}
- public async Task<UserEntity> VerifyToken(string token)
+ public async Task<UserEntity> VerifyTokenAsync(string token)
{
if (token == null)
throw new ArgumentNullException(nameof(token));