LoginProcess

@MainActor
public class LoginProcess

Represents a login process initialized by a LoginManager object. Normally, a process that contains multiple login flows will run serially. If a flow logs in the user successfully, subsequent flows will not be executed.

  • Represents a login route for how the auth flow is initiated.

    See more

    Declaration

    Swift

    public enum LoginRoute : String
  • Describes how the authentication flow is initiated for this login result.

    If the LINE app was launched to obtain this result, the value will be either .appUniversalLink or .appAuthScheme, depending on how the LINE app was opened. If authentication occurred via a web page within the LINE SDK, the value will be .webLogin. If the authentication flow is never or not yet initiated, the value will be nil.

    This value is nil until the process starts the auth flow actually. You can access this value safely when an auth result is retrieved.

    Declaration

    Swift

    @MainActor
    public private(set) var loginRoute: LoginRoute? { get }
  • Stops the login process. The login process will fail with a .forceStopped error.

    Declaration

    Swift

    @MainActor
    public func stop()