clerk sign in and sign up login setup
This commit is contained in:
committed by
GitHub
parent
640961eeec
commit
a5cabfe1a1
@@ -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" />;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user