File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -178,19 +178,15 @@ Developers can also implement private browsing by setting the **.useNonPersisten
178178
179179
180180``` swift
181- // Custom url session
182- let configuration: URLSessionConfiguration = .ephemeral
183- configuration.protocolClasses = [CustomURLProtocol.self ]
184-
185181// Custom LAContext
186- let context : LAContext = .init ()
187- context .localizedReason = " read tokens from keychain"
188- context .localizedFallbackTitle = " Use password"
189- context .touchIDAuthenticationAllowableReuseDuration = 10
182+ let localAuthentication : LAContext = .init ()
183+ localAuthentication .localizedReason = " read tokens from keychain"
184+ localAuthentication .localizedFallbackTitle = " Use password"
185+ localAuthentication .touchIDAuthenticationAllowableReuseDuration = 10
190186
191187let options: [OAuth.Option: Any ] = [
188+ .localAuthentication : localAuthentication,
192189 .requireAuthenticationWithBiometricsOrCompanion : true ,
193- .useNonPersistentWebDataStore : true
194190]
195191let oauth: OAuth = .init (.main , options : options)
196192```
You can’t perform that action at this time.
0 commit comments