Skip to main content
Auth0 is a highly adaptable authentication and authorization platform. Median’s Auth0 Native Plugin implements the Auth0 iOS and Android SDK into your app. The Auth0 integration allows you to request a login token from Auth0 using Universal Login and a native login UI. It can optionally store a refresh token in secure device storage, so that future sign-ins can use Face ID / Touch ID and Android Biometric. This biometric functionality is similar to our Face ID / Touch ID Android Biometric Native Plugin.

Auth0 and app configuration

Auth0 configuration

Configuration disclaimerPlease be aware that the following steps provide a sample implementation to demonstrate the configuration for Median’s Developer Demo. Auth0 is a highly customizable authentication and authorization service and the configuration below may not be suitable for your production environment. We strongly recommend consulting with Auth0 experts to review and tailor your production configuration to your needs.Additional information on the Auth0 Universal Login configuration for mobile applications can be found in the Auth0 Native App Quickstart Guide.

Auth0 application type

Regardless of your existing Applications, Universal Login will require a new Native Application, as the Auth0 Quickstart Guide outlines.
Native application type selected when creating an Auth0 application

Auth0 application type

Auth0 application URIs

As a next step after creating the application, you will need to configure the callback URIs for your Auth0 application. The configuration requires you to set up at minimum the Allowed Callback URLs and Allowed Logout URLs. For our example configuration, we assume the following values: Based on the parameters above we can add the following three URLs to the Auth0 application configuration as allowed Callback URLs and Allowed Logout URLs:
You can learn more about the application URLs for your target platform (iOS and/or Android) in the respective Auth0 Native App Quickstart Guide.
Allowed Callback URLs and Allowed Logout URLs in the Auth0 application settings

Auth0 callback and logout URLs

Advanced settings: device settings

Please populate your iOS bundle ID and Android Package name under Advanced Setting > Device Settings in the Auth0 Dashboard.
iOS and Android settings under Advanced Settings > Device Settings in Auth0

Auth0 device settings

App configuration

Link handling rules
Verify the link handling rules for links to your Auth0 Domain. You can learn more about link handling in our Link Behavior article.
Universal deep links
Verify that Deep Linking is configured properly for all domains with Universal Links selected under Link Handling → Universal Links / Deep Links / Web Credentials.
URL scheme protocol
Verify a URL Scheme Protocol is specified for your app. The URL Scheme and all other values including Package Name and Bundle ID must match the parameters set in your Auth0 tenant.

Auth0 plugin configuration

The Auth0 Native Plugin requires several parameters to be set in App Studio, on the Native Plugins tab under “Advanced Mode”. Sample parameters are as follows:
Parameter notes:
  • scheme is based on the URL scheme of your Android Callback URLs.
  • audience is optional and based on your Auth0 tenant config.
These parameters should match the Application Settings on your Auth0 Dashboard. You can find an example configuration based on the parameters below.
Auth0 plugin parameters in App Studio Advanced Mode

App Studio: Auth0 example configuration

Implementation guide

Sign in with Universal Login

Launch Universal Login via the Median JavaScript Bridge login method. Upon completion of Universal Login flow focus is returned to the app webview and a promise/callback function is invoked with the Auth0 tokens as parameters. To prompt Universal Login and retrieve a token:
Auth0 Universal Login screen in the app

Auth0 Universal Login

Sign out

To sign out:

Support for Face ID / Touch ID / Android biometrics

Get saved credentials

Credentials are saved in the device secure storage and can be retrieved in later sessions. Retrieving saved credentials will automatically renew the tokens using the refreshToken already saved from the previous successful sign-in. To get credentials saved in secure storage:

Renew credentials

Retrieving the credentials automatically returns renewed credentials if the existing credentials are expired but you can also request to renew the credentials manually. You can optionally pass a refreshToken to be used. By default, the method will use the refresh token saved from the previous successful sign-in. To renew credentials manually:

Implementation checklist

Auth0 platform configuration

  • Set up a new Native or Single Page Web Application Auth0 app using the Auth0 Quickstart Guides.
  • Configure Allowed Callback URLs and Allowed Logout URLs based on your Auth0 tenant domain, iOS Bundle ID, and Android Package Name.
  • Configured the Advanced Settings > Device Settings by providing iOS Team ID, and App ID as well as Android App Package Name and Key Hashes

Median app and plugin configuration

  • Configure link handling rules based on your Auth0 tenant domain.
  • Add Deep Linking configuration for your Auth0 tenant domain.
  • Verify or add URL Scheme Protocol configuration based on parameters set in your Auth0 tenant.
  • Verify the Auth0 Plugin configuration and add required parameters: “domain,” “clientId,” “scheme,” and (optionally) “audience.”

Website implementation

  • Use median.auth0.login to launch the Auth0 plugin and initiate the authentication flow for app users.
  • Use median.auth0.logout to provide app users with a sign-out method.
  • Review JavaScript and Auth0 implementation to ensure the use of refresh tokens and enable biometrics.
  • Set up and publicly host [yourdomain]/.well-known/assetlinks.json and [yourdomain]/.well-known/apple-app-site-association files to enable deep linking.

Auth0 plugin demo

Sample app noteThe following demo details the JSON responses for each JavaScript Bridge function based on the configuration and setup outlined above. Please be aware that biometric functionality cannot be tested using iOS and Android simulators. A video showcasing Face ID/Touch ID and Android Biometrics support is included below for your reference.

Frequently asked questions

Median’s Auth0 plugin makes use of the Auth0 iOS and Android native SDKs for the most secure app sign-in experience, consistent with best practices for managing authentication. To learn more about the security benefits of Auth0 Universal Login versus embedded login flows consult the Auth0 documentation discussing Centralized Universal Login vs. Embedded Login.
Mobile security policies and the Internet Engineering Task Force (IETF) Best Current Practices (BCP) require that user login only be made in a browser session facilitated through a native app, and not be permitted in an embedded app webview itself. Google Sign-In, Facebook Login, and Auth0 hosted Universal Login make this mandatory.Our Social Login and Auth0 plugins are the recommended solutions for authentication within your app as they offer the corresponding native SDKs that meet security policies and follow best practices.
Last modified on December 3, 2026