redirect to login page after signup

This commit is contained in:
Sosokker 2025-05-10 01:25:06 +07:00
parent 0a554e69d1
commit 3ce4a05168

View File

@ -39,6 +39,7 @@ export default function SignupScreen() {
// Only pass email and password to signup, as per new auth-context
await signup(email, password);
// Optionally, save name to profile after signup here in the future
router.push("/login");
} catch (error) {
Alert.alert("Error", "Failed to sign up. Please try again.");
} finally {