Authenticator
public protocol Authenticator
Protocol of the class for authenticating with Rogers Bank
-
Delegate for authentication
Declaration
Swift
var delegate: RogersAuthenticatorDelegate? { get set }
-
Initializer
Declaration
Swift
init()
-
Login and load a user account
Declaration
Swift
func login(username: String, password: String, deviceId: String?, completion: @escaping (Result<User, DownloadError>) -> Void)
Parameters
username
username to login
password
password to login
deviceId
deviceId to use if saved - otherwise a new random one will be generated
completion
returns a User or a Download Error