testing singup
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 19s
All checks were successful
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Successful in 19s
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user