Nextcloud login flow v2, Network code rewrite

This commit is contained in:
Vicnet
2023-09-20 13:25:25 +02:00
parent 0f16b164d6
commit 26dd5c34ff
16 changed files with 504 additions and 364 deletions

View File

@@ -47,7 +47,8 @@ struct RecipeDetail: Codable {
keywords: "",
dateCreated: "",
dateModified: "",
imageUrl: "", id: "",
imageUrl: "",
id: "",
prepTime: "",
cookTime: "",
totalTime: "",
@@ -68,4 +69,18 @@ struct RecipeImage {
var full: UIImage?
}
struct LoginV2Request: Codable {
let poll: LoginV2Poll
let login: String
}
struct LoginV2Poll: Codable {
let token: String
let endpoint: String
}
struct LoginV2Response: Codable {
let server: String
let loginName: String
let appPassword: String
}