- updated the authentication coordinator to use async await - replaced the UserSession with a ClientProxy (similar to the RoomProxy) - renamed `completion` to `callback` on the coordinators and view models - renamed `viewModelResult` to `viewModelAction` - introduced back UserSession as a user specific service container
16 lines
404 B
Swift
16 lines
404 B
Swift
//
|
|
// KeychainControllerProtocol.swift
|
|
// ElementX
|
|
//
|
|
// Created by Stefan Ceriu on 14.02.2022.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
protocol KeychainControllerProtocol {
|
|
func setAccessToken(_ accessToken: String, forUsername username: String)
|
|
func accessTokenForUsername(_ username: String) -> String?
|
|
func accessTokens() -> [(username: String, accessToken: String)]
|
|
func removeAllAccessTokens()
|
|
}
|