Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -178,19 +178,15 @@ Developers can also implement private browsing by setting the **.useNonPersisten


```swift
// Custom url session
let configuration: URLSessionConfiguration = .ephemeral
configuration.protocolClasses = [CustomURLProtocol.self]

// Custom LAContext
let context: LAContext = .init()
context.localizedReason = "read tokens from keychain"
context.localizedFallbackTitle = "Use password"
context.touchIDAuthenticationAllowableReuseDuration = 10
let localAuthentication: LAContext = .init()
localAuthentication.localizedReason = "read tokens from keychain"
localAuthentication.localizedFallbackTitle = "Use password"
localAuthentication.touchIDAuthenticationAllowableReuseDuration = 10

let options: [OAuth.Option: Any] = [
.localAuthentication: localAuthentication,
.requireAuthenticationWithBiometricsOrCompanion: true,
.useNonPersistentWebDataStore: true
]
let oauth: OAuth = .init(.main, options: options)
```
Expand Down