iOS Permission Popup Appears During Login With Auth0.swift SDK

Overview

This article explains why a permission popup appears when a user attempts to sign in using the Auth0.swift Software Development Kit (SDK).

The following message is displayed: "App" Wants to Use "auth0.com" to Sign In. This allows the app and website to share information about you.

 SCR-20241108-lvgs.png 

Applies To

  • Auth0.swift SDK

Cause

The Auth0.swift Software Development Kit (SDK) uses Apple's ASWebAuthenticationSession for web-based authentication. This process stores the session cookie in the shared Safari cookie jar, which requires user consent as per Apple's guidelines, triggering the permission popup.

Solution

  1. Review the How can I disable the login alert box thread in F.A.Q section of Auth0.swift SDK repository to learn about managing the pop-up.
  2. Review ASWebAuthenticationSession vs SFSafariViewController (iOS) to determine the best option for the use case.
  3. If Single Sign-On (SSO) is not a requirement, proceed with one of the following options:

Recommended content

No recommended content found...