From 96701ca94eaac75abfe5457542193d6263ba60f7 Mon Sep 17 00:00:00 2001 From: Rita Zerrizuela Date: Fri, 17 Nov 2023 15:23:42 +0000 Subject: [PATCH] Update documentation to remove mentions of iOS 12 (#804) --- Auth0/WebAuth.swift | 1 - FAQ.md | 14 +++++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/Auth0/WebAuth.swift b/Auth0/WebAuth.swift index ee662664..bb099964 100644 --- a/Auth0/WebAuth.swift +++ b/Auth0/WebAuth.swift @@ -131,7 +131,6 @@ public protocol WebAuth: Trackable, Loggable { /// Using this method will disable single sign-on (SSO). /// /// - Returns: The same `WebAuth` instance to allow method chaining. - /// - Requires: iOS 13+ or macOS. Has no effect on iOS 12. /// - Important: You don't need to call ``WebAuth/clearSession(federated:callback:)-9yv61`` if you are using this /// method on login, because there will be no shared cookie to remove. /// - Note: Don't use this method along with ``provider(_:)``. Use either one or the other, because this diff --git a/FAQ.md b/FAQ.md index 4d54eab5..1f0bcd57 100644 --- a/FAQ.md +++ b/FAQ.md @@ -1,11 +1,11 @@ # Frequently Asked Questions -1. [How can I disable the _login_ alert box?](#1-how-can-i-disable-the-login-alert-box) - - [Use ephemeral sessions](#use-ephemeral-sessions) - - [Use `SFSafariViewController`](#use-sfsafariviewcontroller) -2. [How can I disable the _logout_ alert box?](#2-how-can-i-disable-the-logout-alert-box) -3. [How can I change the message in the alert box?](#3-how-can-i-change-the-message-in-the-alert-box) -4. [How can I programmatically close the alert box?](#4-how-can-i-programmatically-close-the-alert-box) +- [1. How can I disable the _login_ alert box?](#1-how-can-i-disable-the-login-alert-box) + - [Use ephemeral sessions](#use-ephemeral-sessions) + - [Use `SFSafariViewController`](#use-sfsafariviewcontroller) +- [2. How can I disable the _logout_ alert box?](#2-how-can-i-disable-the-logout-alert-box) +- [3. How can I change the message in the alert box?](#3-how-can-i-change-the-message-in-the-alert-box) +- [4. How can I programmatically close the alert box?](#4-how-can-i-programmatically-close-the-alert-box) --- @@ -36,7 +36,7 @@ Auth0 Note that with `useEphemeralSession()` you don't need to call `clearSession(federated:)` at all. Just clearing the credentials from the app will suffice. What `clearSession(federated:)` does is clear the shared session cookie, so that in the next login call the user gets asked to log in again. But with `useEphemeralSession()` there will be no shared cookie to remove. > **Note** -> `useEphemeralSession()` relies on the `prefersEphemeralWebBrowserSession` configuration option of `ASWebAuthenticationSession`. This option is only available on [iOS 13+ and macOS](https://developer.apple.com/documentation/authenticationservices/aswebauthenticationsession/3237231-prefersephemeralwebbrowsersessio), so `useEphemeralSession()` will have no effect on iOS 12. To improve the experience for iOS 12 users, see the approach described below. +> `useEphemeralSession()` relies on the `prefersEphemeralWebBrowserSession` configuration option of `ASWebAuthenticationSession`. ### Use `SFSafariViewController`