File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -90,10 +90,9 @@ export default function AuthScreen() {
9090
9191 const handleEmailAuth = async ( ) => {
9292 const trimmedEmail = email . trim ( ) ;
93- const trimmedPassword = password . trim ( ) ;
9493
95- if ( ! trimmedEmail || ! trimmedPassword ) return ;
96- if ( trimmedPassword . length < 6 ) {
94+ if ( ! trimmedEmail || ! password ) return ;
95+ if ( password . length < 6 ) {
9796 Alert . alert ( 'Password too short' , 'Password must be at least 6 characters.' ) ;
9897 return ;
9998 }
@@ -103,13 +102,13 @@ export default function AuthScreen() {
103102 if ( authMode === 'signin' ) {
104103 const { error } = await supabase . auth . signInWithPassword ( {
105104 email : trimmedEmail ,
106- password : trimmedPassword ,
105+ password : password ,
107106 } ) ;
108107 if ( error ) throw error ;
109108 } else {
110109 const { error } = await supabase . auth . signUp ( {
111110 email : trimmedEmail ,
112- password : trimmedPassword ,
111+ password : password ,
113112 } ) ;
114113 if ( error ) throw error ;
115114 Alert . alert (
You can’t perform that action at this time.
0 commit comments