From 87c89a2c90a004fb5713fd082ead3cb2a80d9201 Mon Sep 17 00:00:00 2001 From: Code Fiesta <17772633+codefiesta@users.noreply.github.com> Date: Tue, 24 Jun 2025 17:29:20 -0700 Subject: [PATCH 1/2] Update README --- README.md | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 76ef3e1..cb77eca 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 localAuthenticationContext: LAContext = .init() +localAuthenticationContext.localizedReason = "read tokens from keychain" +localAuthenticationContext.localizedFallbackTitle = "Use password" +localAuthenticationContext.touchIDAuthenticationAllowableReuseDuration = 10 let options: [OAuth.Option: Any] = [ + .localAuthentication: localAuthenticationContext, .requireAuthenticationWithBiometricsOrCompanion: true, - .useNonPersistentWebDataStore: true ] let oauth: OAuth = .init(.main, options: options) ``` From 8d853baa1716545c20e259934fe181d7a97d0a6d Mon Sep 17 00:00:00 2001 From: Code Fiesta <17772633+codefiesta@users.noreply.github.com> Date: Tue, 24 Jun 2025 17:31:30 -0700 Subject: [PATCH 2/2] Update README --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index cb77eca..c4ed4b8 100644 --- a/README.md +++ b/README.md @@ -179,13 +179,13 @@ Developers can also implement private browsing by setting the **.useNonPersisten ```swift // Custom LAContext -let localAuthenticationContext: LAContext = .init() -localAuthenticationContext.localizedReason = "read tokens from keychain" -localAuthenticationContext.localizedFallbackTitle = "Use password" -localAuthenticationContext.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: localAuthenticationContext, + .localAuthentication: localAuthentication, .requireAuthenticationWithBiometricsOrCompanion: true, ] let oauth: OAuth = .init(.main, options: options)