How to avoid creating a new account with magic links?

Magic links are working great for logins but I don't want them to work for accounts that doesn't exist. I tried this code but it still creates an account? Any idea ?

 const { error } = await supabaseClient.auth.signInWithOtp({
  email,
  options: {
    shouldCreateUser: false,
  },
});
Was this page helpful?