mirror of
https://github.com/DrMboga/WotBlitzStatisticsBlazor.git
synced 2026-10-28 04:40:07 +01:00
feat: implemented login-prolong-logout mechanisms
This commit is contained in:
1 parent
79a87d0d66
commit
241b879689
53 files changed
+1789
-13
No files matched your search
@@ -398,5 +398,15 @@ namespace WotBlitzStatisticsPro.Blazor.Services.Mock
|
||||
{
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
public Task<LoginInfo> ProlongToken(string oldToken, RealmType realmType)
|
||||
{
|
||||
return Task.FromResult(new LoginInfo { AccessToken = oldToken, Realm = realmType, ExpiresAt = 1631182800, NickName = "Fake nick" });
|
||||
}
|
||||
|
||||
public Task<string> Logout(string token, RealmType realmType)
|
||||
{
|
||||
return Task.FromResult("Fake logout");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user