Type Aliases
The following type aliases are available globally.
-
Type alias for the callback that loads the user profile for the given user ID (invoking the provided closure).
Declaration
Swift
public typealias UserProfileLoader = (String, (UserProfile?, String?) -> Void) -> Void
-
Type alias for the callback that verifies the userId and password and if the authentication pair verifies, then a user profile is returned.
Declaration
Swift
public typealias VerifyPassword = (String, String, @escaping (UserProfile?) -> Void) -> Void