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
usernameusername to login
passwordpassword to login
deviceIddeviceId to use if saved - otherwise a new random one will be generated
completionreturns a User or a Download Error
View on GitHub
Install in Dash