Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion ios/LineLoginModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Foundation
import LineSDK

@objc(LineLogin) public class LineLogin: NSObject {

@objc public static func application(
_ application: UIApplication,
open url: URL,
Expand All @@ -20,7 +21,12 @@ import LineSDK

@objc func setup(_ arguments: NSDictionary, resolver resolve: @escaping RCTPromiseResolveBlock,
rejecter reject: @escaping RCTPromiseRejectBlock) {


if LoginManager.shared.isSetupFinished {
reject("SETUP_ALREADY_COMPLETED", "Setup has already been completed", nil)
return
}

guard let channelID = arguments["channelId"] as? String else {
reject("INVALID_ARGUMENTS", "Missing required argument: channelId", nil)
return
Expand Down