redirect link sending to wrong link

i have this fucntion for user creation
2 Replies
bennypc
bennypcOP3y ago
async function createAccount(e) {
e.preventDefault();

console.log("create");
const { data, error } = await supabase.auth.signUp({
email: email,
password: password,
options: {
data: {
first_name: firstName,
last_name: lastName,
},
emailRedirectTo: "login",
},
});
}
async function createAccount(e) {
e.preventDefault();

console.log("create");
const { data, error } = await supabase.auth.signUp({
email: email,
password: password,
options: {
data: {
first_name: firstName,
last_name: lastName,
},
emailRedirectTo: "login",
},
});
}
but its sending me to site.com//link instead of site.com/link
silentworks
silentworks3y ago
emailRedirectTo need to be an absolute url, so it requires the `http://www.sitename.com/login and this must be in your Redirect URLs list in the Supabase Dashbaord https://app.supabase.com/project/_/auth/url-configuration

Did you find this page helpful?