Skip to content

Commit a1acc4b

Browse files
authored
README (#95)
1 parent 9db9971 commit a1acc4b

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff 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

191187
let options: [OAuth.Option: Any] = [
188+
.localAuthentication: localAuthentication,
192189
.requireAuthenticationWithBiometricsOrCompanion: true,
193-
.useNonPersistentWebDataStore: true
194190
]
195191
let oauth: OAuth = .init(.main, options: options)
196192
```

0 commit comments

Comments
 (0)