import { View, ActivityIndicator } from "react-native"; import { useTheme } from "../src/context/ThemeContext"; /** * On Android, the custom tab used by Clerk's useSSO() fires the OAuth * redirect intent (pawfeed://sso-callback) at the app itself, not just at * expo-web-browser's pending openAuthSessionAsync() promise — so * expo-router's own Linking listener also sees the URL. Without a matching * route here, that shows Expo Router's "Unmatched Route" error screen to * the user for however long the real handshake (GoogleSignInButton's * startSSOFlow -> setActive -> router.replace("/(app)")) takes to resolve * and navigate away. * * This route exists purely to give expo-router something valid to render * during that window. It deliberately does no auth-state logic itself — * app/_layout.tsx's useProtectedRoute() already redirects signed-out users * away from any non-(auth) screen, and GoogleSignInButton takes over * navigation the moment the real SSO flow completes. */ export default function SsoCallback() { const { colors } = useTheme(); return ( ); }