© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•3y ago•
1 reply
AbhijayBisht

Auth UI localization

How do I access the localization.variable value?

function Login(){
const navigate = useNavigate();
const [email, setEmail] = useState("");
const [password, setPassword] = useState("");


const handleUserInput = (event) => {
// Capture user input changes
if (event.target.name === 'email') {
setEmail(event.target.value);
} else if (event.target.name === 'password') {
setPassword(event.target.value);
}
};

const handleSignIn = async () => {
try {
const { user, error } = await supabases.auth.signIn({
email,
password,
});

if (error) {
console.error('Login error:', error.message);
console.log(error);
navigate("/");

} else {
console.log('User logged in:', user);
console.log("Successfully IN");
navigate("/success");
}
} catch (error) {
console.error('Login error:', error.message);
}
};

return (

<div className="App">
<header className="App-header">
<Auth
supabaseClient={supabases}
appearance={{ theme : ThemeSupa }}
theme="dark"
providers={["google"]}
localization={{
variables: {
sign_in: {
email_input_placeholder: 'Your email address',
password_input_placeholder: 'Your strong password',
},
},
}}
/>
</header>
</div>

);

In my above code I am trying to access the email and password, so to perform check from existing user from my database in supabase.

But my question is how do I access them, as they are already defined in <Auth /> ?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Auth Ui
SupabaseSSupabase / help-and-questions
4y ago
Supabase Auth UI
SupabaseSSupabase / help-and-questions
4y ago
auth-ui-react question
SupabaseSSupabase / help-and-questions
13mo ago
Nextjs with auth-ui
SupabaseSSupabase / help-and-questions
3y ago