I am having difficulties with the confirmation email functionality. While the login, sign-up, and password reset processes work as they're supposed to, the Email Update Confirmation sends to the old email address instead of the new one. Although the message correctly states the change from "[email protected]" to "[email protected]," the email is dispatched to the former address.
The issue remains with both the built-in Auth action for Email Update and a brief segment of code.
Future changeEmail(String newEmail) async {
final response =
await SupaFlow.client.auth.updateUser(UserAttributes(email: newEmail));
if (response.user != null) {
return true;
} else {
return false;
}
}
I can reproduce it from scratch, but confirmed with FF it's not a bug. Supabase support wasn't very proactive. Any idea?