Skip to main content

Native to Web SSO for iOS, Android, and Expo

Category
SDK
Published

Send users from your native app to your web app, in a web view or their browser, without making them sign in again.

You can now open your web app from an iOS, Android, or Expo app with the user already signed in, without another sign-in or multi-factor prompt.

Most native apps include a few web pages, like account settings, a help center, or a feature you haven't built natively yet. Until now, opening one of those pages from your app sent the user to your sign-in page, even though they were already signed in to the app. With Native to Web SSO, the page opens through a one-time sign-in link that expires after 60 seconds.

You can use it in three ways:

  • Show the page in a web view, for pages that are part of your app.
  • Open the page in the user's default browser, to send them to your full web app.
  • Create the link yourself, to open it with your own code when neither of the other two fits.

When the user signs out of your app, Clerk also signs them out of the web sessions those links created, with a few exceptions.

Get started

Native to Web SSO is free in development instances. In production, your application needs the Pro or Business plan. Your web app must use the same Clerk instance as your native app.

  1. Update your app to Clerk iOS SDK 1.7.3, Clerk Android SDK 1.5.0, or @clerk/expo 4.17.0 or later.
  2. In the Clerk Dashboard, navigate to the Native applications page. Enable the Native API, if it isn't already, then turn on Native to Web SSO.
  3. Follow the guide for your platform to open your first page: iOS, Android, or Expo.
Contributors
Mike Pitre
Sean Perez
Sam Wolfand
Robert Soriano

Share this article