RogersAuthenticator
public class RogersAuthenticator : Authenticator
Class to authenticate with Rogers Bank
Call login
to authenticate and receive a User
instance
-
Delegate for authentication
Declaration
Swift
public weak var delegate: RogersAuthenticatorDelegate?
-
Initialize the authenticator
Declaration
Swift
public required init()
-
Authenticate with Rogers Bank
Declaration
Swift
public 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