clerk sign in and sign up login setup

This commit is contained in:
Sanidhya Kumar Verma
2024-08-29 16:08:12 +00:00
committed by GitHub
parent 640961eeec
commit a5cabfe1a1
7 changed files with 139 additions and 11 deletions
+5
View File
@@ -1,6 +1,11 @@
import { useAuth } from "@clerk/clerk-expo";
import { Redirect } from "expo-router";
const App = () => {
const { isSignedIn } = useAuth();
if (isSignedIn) return <Redirect href="/(root)/(tabs)/home" />;
return <Redirect href="/(auth)/welcome" />;
};