diff --git a/app/(auth)/sign-in.tsx b/app/(auth)/sign-in.tsx index 6de93aa..e9b0e17 100644 --- a/app/(auth)/sign-in.tsx +++ b/app/(auth)/sign-in.tsx @@ -63,7 +63,7 @@ const SignIn = () => { @@ -72,11 +72,12 @@ const SignIn = () => { email: value, })) } + keyboardType="email-address" /> { const { isLoaded, signUp, setActive } = useSignUp(); @@ -62,7 +63,14 @@ const SignUp = () => { }); if (completeSignUp.status === "complete") { - // TODO: Create a database user + await fetchAPI("/(api)/user", { + method: "POST", + body: JSON.stringify({ + name: form.name, + email: form.email, + clerkId: completeSignUp.createdUserId, + }), + }); await setActive({ session: completeSignUp.createdSessionId }); setVerification((prevVerification) => ({ @@ -104,7 +112,7 @@ const SignUp = () => { @@ -113,11 +121,12 @@ const SignUp = () => { name: value, })) } + autoCapitalize="sentences" /> @@ -126,11 +135,12 @@ const SignUp = () => { email: value, })) } + keyboardType="email-address" /> { setVerification((prevVerification) => ({ diff --git a/components/input-field.tsx b/components/input-field.tsx index 4a8ce07..d4961df 100644 --- a/components/input-field.tsx +++ b/components/input-field.tsx @@ -43,6 +43,8 @@ export const InputField = ({