Live video on the AT Protocol
79
fork

Configure Feed

Select the types of activity you want to include in your feed.

at natb/increase-timeout 26 lines 905 B view raw
1import { Button, View } from "tamagui"; 2 3export default function AppReturnScreen({ route }) { 4 const scheme = route.params?.scheme; 5 // This should work. It does work on iOS. On Android, it causes the token to be 6 // authorized twice? I don't know why. I spent two hours trying to figure out why 7 // without luck. You're welcome to try more if you want! But it only matters for the 8 // login flow on the localhost development case so who cares I guess. 9 // useEffect(() => { 10 // document.location.href = `${scheme}:/app-return${document.location.search}`; 11 // }, []); 12 return ( 13 <View f={1} ai="center" jc="center"> 14 <Button 15 backgroundColor="$accentColor" 16 fontSize="$8" 17 padding="$6" 18 onPress={() => { 19 document.location.href = `${scheme}:/${document.location.search}`; 20 }} 21 > 22 Complete login 23 </Button> 24 </View> 25 ); 26}