aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Services/UserTokenManager.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-29 00:17:45 +0800
committercrupest <crupest@outlook.com>2020-01-29 00:17:45 +0800
commit2750a3df1834c1c6623aa8c653504c7bc12cefd6 (patch)
tree480e4e0fa03f0736cfee97876603fdb87d3fd3bd /Timeline/Services/UserTokenManager.cs
parent20347298c57e97287f586479fd9a52ba85565406 (diff)
downloadtimeline-2750a3df1834c1c6623aa8c653504c7bc12cefd6.tar.gz
timeline-2750a3df1834c1c6623aa8c653504c7bc12cefd6.tar.bz2
timeline-2750a3df1834c1c6623aa8c653504c7bc12cefd6.zip
...
Diffstat (limited to 'Timeline/Services/UserTokenManager.cs')
-rw-r--r--Timeline/Services/UserTokenManager.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/Timeline/Services/UserTokenManager.cs b/Timeline/Services/UserTokenManager.cs
index c3cb51c9..a2c2980d 100644
--- a/Timeline/Services/UserTokenManager.cs
+++ b/Timeline/Services/UserTokenManager.cs
@@ -8,7 +8,7 @@ namespace Timeline.Services
public class UserTokenCreateResult
{
public string Token { get; set; } = default!;
- public UserInfo User { get; set; } = default!;
+ public User User { get; set; } = default!;
}
public interface IUserTokenManager
@@ -36,7 +36,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<UserInfo> VerifyToken(string token);
+ public Task<User> VerifyToken(string token);
}
public class UserTokenManager : IUserTokenManager
@@ -68,7 +68,7 @@ namespace Timeline.Services
}
- public async Task<UserInfo> VerifyToken(string token)
+ public async Task<User> VerifyToken(string token)
{
if (token == null)
throw new ArgumentNullException(nameof(token));