diff --git a/README.md b/README.md index 76ef3e1..c4ed4b8 100644 --- a/README.md +++ b/README.md @@ -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) ```