Open maximilian-hammerl opened 4 weeks ago
I created a test Supabase instance with project ID djigzxpjteusflninqtt, enabled "secure email change" and I am still able to reproduce this issue.
This bug seems to affect a locally running as well as a hosted Supabase instance.
Hey there ! Thank's for reporting and taking the time to make a MRE that's very helpful !
Seems like this might be a bug with the generateLink
used to generate the mail links. After some testing the bug doesn't happen if you just "updateUser" and change it's mail. In such case, both adresses of the users receive an email, and both links need to be clicked to confirm the change.
I've pinged our auth team to have a look at it. I'm transferring the issue over the appropriate repo.
Hi, what is the status of this issue? Are you already working on it?
Describe the bug
The
auth.email.double_confirm_changes
configuration option (https://supabase.com/docs/guides/local-development/cli/config#auth.email.double_confirm_changes) in the config.toml does not seem to work.To Reproduce
Repository: https://github.com/maximilian-hammerl/supabase-change-email-address-example
After starting both Supabase (
npm run start
, and optionallynpm run serve
) and the frontend (npm install
andnpm run dev
), open http://localhost:5173/Then:
Expected behavior
The e-mail address of the user should only change after the user clicked on both links, not just one of them.
System information
Additional context
We also contacted the Supabase support regarding this issue (Support ticket ID: 15644055709), because we first assumed that it was not a bug, but an issue on our side, but received two less than helpful answers (telling us to use updateUser to change the e-mail address of the user, completely disregarding that we want the user to confirm the e-mail address change, as well as forgetting and repeatedly asking where we set the
double_confirm_changes
configuration option).