diff options
author | crupest <crupest@outlook.com> | 2021-04-28 17:16:45 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-28 17:16:45 +0800 |
commit | ffd50da0e45df6d1c5c27bff4a5b459f201fd7ef (patch) | |
tree | d556eca60c5edd6dea506546f97dabb7a34a62e9 /BackEnd/Timeline/Services/Token/IUserTokenManager.cs | |
parent | db6629940e294b44d678e776ccce769a8ac715de (diff) | |
download | timeline-ffd50da0e45df6d1c5c27bff4a5b459f201fd7ef.tar.gz timeline-ffd50da0e45df6d1c5c27bff4a5b459f201fd7ef.tar.bz2 timeline-ffd50da0e45df6d1c5c27bff4a5b459f201fd7ef.zip |
...
Diffstat (limited to 'BackEnd/Timeline/Services/Token/IUserTokenManager.cs')
-rw-r--r-- | BackEnd/Timeline/Services/Token/IUserTokenManager.cs | 4 |
1 files changed, 2 insertions, 2 deletions
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 /// <exception cref="ArgumentException">Thrown when <paramref name="username"/> is of bad format.</exception>
/// <exception cref="UserNotExistException">Thrown when the user with <paramref name="username"/> does not exist.</exception>
/// <exception cref="BadPasswordException">Thrown when <paramref name="password"/> is wrong.</exception>
- public Task<UserTokenCreateResult> CreateToken(string username, string password, DateTime? expireAt = null);
+ public Task<UserTokenCreateResult> CreateTokenAsync(string username, string password, DateTime? expireAt = null);
/// <summary>
/// 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 /// <exception cref="UserTokenVersionExpiredException">Thrown when the token is of bad version.</exception>
/// <exception cref="UserTokenBadFormatException">Thrown when the token is of bad format.</exception>
/// <exception cref="UserTokenUserNotExistException">Thrown when the user specified by the token does not exist. Usually the user had been deleted after the token was issued.</exception>
- public Task<UserEntity> VerifyToken(string token);
+ public Task<UserEntity> VerifyTokenAsync(string token);
}
}
|