diff --git a/.changeset/expo-native-to-web.md b/.changeset/expo-native-to-web.md new file mode 100644 index 00000000000..3bcc5d49b57 --- /dev/null +++ b/.changeset/expo-native-to-web.md @@ -0,0 +1,47 @@ +--- +'@clerk/expo': minor +--- + +Introduce the `useAuthenticatedWebView()` hook for showing a page of your web app in a WebView with the native app's user already signed in. + +```tsx +import { useAuthenticatedWebView } from '@clerk/expo/native-to-web'; +import { Redirect } from 'expo-router'; +import { ActivityIndicator, Button, StyleSheet, View } from 'react-native'; +import { WebView } from 'react-native-webview'; + +export default function AccountScreen() { + // Prepares a one-time sign-in link for this page + const web = useAuthenticatedWebView({ destination: 'https://app.example.com/account' }); + + if (web.status === 'signed-out') return ; + if (web.status === 'error') return