AuthenticationService
public class AuthenticationService
Responsible for authentication against the Magine system
-
Initializer.
Declaration
Swift
public init(withConfiguration configuration:MagineKitConfiguration)
-
Login.
Attention
Calling login while logged in, will erase existing credentials and request for a new one. This is changed from 1.x.xDeclaration
Swift
public func login(withIdentity identity: iUserIdentity, completed: @escaping LoginResultHandler)
-
Signup.
Declaration
Swift
public func signUp ( identity: iUserIdentity, email: String? = nil, name: String, emailOptIn: Bool = false, completed: @escaping SignUpResultHandler )
-
Reset password.
Declaration
Swift
public func logout(onCompleted completed: ((_ success: Bool) -> ()))
-
Reset password.
Declaration
Swift
public func resetPassword(forEmail email: String, completed: @escaping ((_ success: Bool) -> ()))