We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 335ce6d + ba995ac commit 1683841Copy full SHA for 1683841
ios/LineLoginModule.swift
@@ -2,6 +2,7 @@ import Foundation
2
import LineSDK
3
4
@objc(LineLogin) public class LineLogin: NSObject {
5
+
6
@objc public static func application(
7
_ application: UIApplication,
8
open url: URL,
@@ -20,7 +21,12 @@ import LineSDK
20
21
22
@objc func setup(_ arguments: NSDictionary, resolver resolve: @escaping RCTPromiseResolveBlock,
23
rejecter reject: @escaping RCTPromiseRejectBlock) {
-
24
25
+ if LoginManager.shared.isSetupFinished {
26
+ reject("SETUP_ALREADY_COMPLETED", "Setup has already been completed", nil)
27
+ return
28
+ }
29
30
guard let channelID = arguments["channelId"] as? String else {
31
reject("INVALID_ARGUMENTS", "Missing required argument: channelId", nil)
32
return
0 commit comments