♻️ Updated auth challenges and device API to fit new design

This commit is contained in:
2025-12-03 22:43:35 +08:00
parent 4faa1a4b64
commit 4a71f92ef0
3 changed files with 52 additions and 23 deletions

View File

@@ -153,13 +153,13 @@ public class SnAuthClient : ModelBase
};
}
public class SnAuthClientWithChallenge : SnAuthClient
public class SnAuthClientWithSessions : SnAuthClient
{
public List<SnAuthChallenge> Challenges { get; set; } = [];
public List<SnAuthSession> Sessions { get; set; } = [];
public static SnAuthClientWithChallenge FromClient(SnAuthClient client)
public static SnAuthClientWithSessions FromClient(SnAuthClient client)
{
return new SnAuthClientWithChallenge
return new SnAuthClientWithSessions
{
Id = client.Id,
Platform = client.Platform,