mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 03:06:37 +00:00
#40: Use the Rust AuthenticationService.
* 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.
This commit is contained in:
@@ -8,10 +8,15 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
protocol KeychainControllerProtocol {
|
||||
func setAccessToken(_ accessToken: String, forUsername username: String)
|
||||
func accessTokenForUsername(_ username: String) -> String?
|
||||
func accessTokens() -> [(username: String, accessToken: String)]
|
||||
func removeAccessTokenForUsername(_ username: String)
|
||||
func removeAllAccessTokens()
|
||||
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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user