Handling Deeplinks
For Email Magic Links, OAuth, SSO, and Password Reset flows, this component handles the deeplinking automatically. You’ll need to add a custom URL scheme and redirect URL as explained below. First, you need to configure your app to listen for a deeplink with the scheme:stytch-ui-[YOUR_PUBLIC_TOKEN]. How you do that will depend on your supported platforms and whether you are using bare React Native or Expo.
If you are using Expo Router, which is the default for new apps created with create-expo-app, you must add a
+native-intent.tsx file which ignores the incoming Stytch UI deep links. An example of this can be found here.stytch-ui-[YOUR_PUBLIC_TOKEN]://deeplink and be applied to all redirect types.
Once both the scheme (in your app) and the redirect URL (in your Dashboard) are configured, our pre-built UI should handle the rest.
Props
The Stytch client object.