Skip to content

Commit 89f57d0

Browse files
committed
Recovery token should not be supplied to the CLI argument list
1 parent d4d658f commit 89f57d0

1 file changed

Lines changed: 1 addition & 28 deletions

File tree

Samples/IdxAuthSignIn/IdxAuthSignIn/ClientConfiguration.swift

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -25,32 +25,5 @@ struct ClientConfiguration {
2525
self.recoveryToken = recoveryToken
2626
}
2727

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-
}
28+
static var active: ClientConfiguration?
5629
}

0 commit comments

Comments
 (0)