* Update SDK package to 1.0.12-alpha. * Use an app group for storage and stop stripping the http from the homeserver when configuring the service. * Rename access token to restore token. * Remove matrix.org server description inline with latest FTUE changes.
23 lines
583 B
Swift
23 lines
583 B
Swift
//
|
|
// KeychainControllerProtocol.swift
|
|
// ElementX
|
|
//
|
|
// Created by Stefan Ceriu on 14.02.2022.
|
|
// Copyright © 2022 Element. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
struct KeychainCredentials {
|
|
let userID: String
|
|
let restoreToken: String
|
|
}
|
|
|
|
protocol KeychainControllerProtocol {
|
|
func setRestoreToken(_ accessToken: String, forUsername username: String)
|
|
func restoreTokenForUsername(_ username: String) -> String?
|
|
func restoreTokens() -> [KeychainCredentials]
|
|
func removeRestoreTokenForUsername(_ username: String)
|
|
func removeAllRestoreTokens()
|
|
}
|