testing singup
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 19s

This commit is contained in:
2025-11-10 20:51:38 -08:00
parent 550b5a4895
commit 1a8e1439a7

View File

@@ -41,7 +41,13 @@ export const AuthModal: React.FC<AuthModalProps> = ({ isOpen, onClose }) => {
try {
if (view === 'signUp') {
const { error } = await supabase.auth.signUp({ email, password });
// Add the emailRedirectTo option to ensure the confirmation link
// points back to the current environment (localhost or production).
const { error } = await supabase.auth.signUp({
email,
password,
options: { emailRedirectTo: window.location.href }
});
if (error) throw error;
setMessage('Check your email for the confirmation link!');
} else {