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
controllerAuth Controller.
currentUserThe currently authenticated user, nil if no authentication.
oldUserThe previous user (if available).
errorError that resulted in the update.
MimiAuthControllerObservable Protocol Reference