RogersAuthenticatorDelegate

public protocol RogersAuthenticatorDelegate : AnyObject

Delegate for the RogersAuthenticator

  • Select a way to do two factor authentication, e.g. email or text

    Declaration

    Swift

    func selectTwoFactorPreference(_ preferences: [TwoFactorPreference]) -> TwoFactorPreference

    Parameters

    preferences

    available preferences

    Return Value

    selected preference from the argement to use

  • Get the two factor code from the user

    Declaration

    Swift

    func getTwoFactorCode() -> String

    Return Value

    two factor code

  • Save the device id When the device id is saved and passed to the login function, the user might be able to skip entering a two factor code again

    Declaration

    Swift

    func saveDeviceId(_ deviceId: String)

    Parameters

    deviceId

    device id to save