diff options
author | crupest <crupest@outlook.com> | 2020-11-27 00:07:09 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-27 00:07:09 +0800 |
commit | 7883590a7a0c5c5c4e5cff6290e26c64e1258a25 (patch) | |
tree | 28e1ad4d02c4054e13b6cf539c64aba8d00df3e5 /BackEnd/Timeline/Services/UserTokenManager.cs | |
parent | ce85af942c64fc3bad4e4502d683f730c882de96 (diff) | |
download | timeline-7883590a7a0c5c5c4e5cff6290e26c64e1258a25.tar.gz timeline-7883590a7a0c5c5c4e5cff6290e26c64e1258a25.tar.bz2 timeline-7883590a7a0c5c5c4e5cff6290e26c64e1258a25.zip |
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Services/UserTokenManager.cs')
-rw-r--r-- | BackEnd/Timeline/Services/UserTokenManager.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/BackEnd/Timeline/Services/UserTokenManager.cs b/BackEnd/Timeline/Services/UserTokenManager.cs index 831329e6..b887b987 100644 --- a/BackEnd/Timeline/Services/UserTokenManager.cs +++ b/BackEnd/Timeline/Services/UserTokenManager.cs @@ -10,7 +10,7 @@ namespace Timeline.Services public class UserTokenCreateResult
{
public string Token { get; set; } = default!;
- public User User { get; set; } = default!;
+ public UserInfo User { get; set; } = default!;
}
public interface IUserTokenManager
@@ -38,7 +38,7 @@ namespace Timeline.Services /// <exception cref="UserTokenBadVersionException">Thrown when the token is of bad version.</exception>
/// <exception cref="UserTokenBadFormatException">Thrown when the token is of bad format.</exception>
/// <exception cref="UserNotExistException">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<User> VerifyToken(string token);
+ public Task<UserInfo> VerifyToken(string token);
}
public class UserTokenManager : IUserTokenManager
@@ -75,7 +75,7 @@ namespace Timeline.Services }
- public async Task<User> VerifyToken(string token)
+ public async Task<UserInfo> VerifyToken(string token)
{
if (token == null)
throw new ArgumentNullException(nameof(token));
|