resetPasswordForEmail data object always empty

Hey yall I currently have this peace of code:
 const { data, error } = await supabase.auth.resetPasswordForEmail(email, {
      redirectTo: redirectUrl
    });

When I do a console.log("data: " + JSON.stringify(data))

I get an empty value whether the user with that email exists in the db or not. Is that what is expected?
Was this page helpful?