naegelin
11/09/2021, 4:10 AMconst { user, session, error } = await supabase.auth.signUp({
email: email,
password: password,
}, {
data: {
phone: phone,
name: name,
company: company
},
redirectTo: config.BASE_URL + "/api/registration/activate"
}
);
and the URL in redirectTo is listed on the dashboard under Additional Redirect URLs
No matter what the email that shows up always contains just the base URL in the redirect_to query paramsilentworks
11/09/2021, 8:44 AMAdditional Redirect URL
must match exactly that which you are passing to the redirectTo parameter, as in include the entire string of the baseURL plus the /api/registration/activate
naegelin
11/09/2021, 2:21 PMnaegelin
11/09/2021, 2:21 PMsilentworks
11/09/2021, 2:45 PMconsole.log(config.BASE_URL + "/api/registration/activate")
to make sure it is printing exactly what you have, somehow I feel there is an extra /
in there that isn't noticablenaegelin
11/09/2021, 3:54 PMnaegelin
11/09/2021, 4:16 PMnaegelin
11/09/2021, 4:23 PMsilentworks
11/09/2021, 7:54 PM