MimiAuthControllerObservable

public protocol MimiAuthControllerObservable : AnyObject

Observable for MimiAuthController events.

  • Auth Controller did update the currently authenticated user.

    An update could constitute a new user authenticating, logging out or even the data model of the currently authenticated user being updated.

    Declaration

    Swift

    func authController(_ controller: MimiAuthController,
                        didUpdate currentUser: MimiUser?,
                        from oldUser: MimiUser?,
                        error: MimiCoreError?)
    Parameters
    controller

    Auth Controller.

    currentUser

    The currently authenticated user, nil if no authentication.

    oldUser

    The previous user (if available).

    error

    Error that resulted in the update.