There was an error while loading. Please reload this page.
1 parent d4d658f commit 89f57d0Copy full SHA for 89f57d0
1 file changed
Samples/IdxAuthSignIn/IdxAuthSignIn/ClientConfiguration.swift
@@ -25,32 +25,5 @@ struct ClientConfiguration {
25
self.recoveryToken = recoveryToken
26
}
27
28
- static var active: ClientConfiguration? = {
29
- launchConfiguration
30
- }()
31
-
32
- static var launchConfiguration: ClientConfiguration? {
33
- let arguments = [
34
- "--recoveryToken", "-t"
35
- ]
36
37
- var recoveryToken: String?
38
- var key: String?
39
- for argument in CommandLine.arguments {
40
- if arguments.contains(argument) {
41
- key = argument
42
- continue
43
- }
44
45
- switch key {
46
- case "--recoveryToken", "-t":
47
- recoveryToken = argument
48
49
- default: break
50
51
- key = nil
52
53
54
- return ClientConfiguration(recoveryToken: recoveryToken)
55
+ static var active: ClientConfiguration?
56
0 commit comments