Extensions: [BUG] Mail not synced to MailChimp after linking email credentials

Created on 29 Sep 2019  路  6Comments  路  Source: firebase/extensions

[READ] Step 1: Are you in the right place?

Yes.

[REQUIRED] Step 2: Describe your configuration

  • Extension name: auth-mailchimp-sync

[REQUIRED] Step 3: Describe the problem

Steps to reproduce:

  1. Create anonymous user
  2. Link email credential to that user
Expected result

An email address from email credential should sync to MailChimp.

Actual result

Did not sync.

feature request

Most helpful comment

Let me bring this one up with the team. Generally it would be a totally different extension if it triggered on collection change. Here's something which may work:

  1. Auth user create: Updates Mailchimp + creates a record in a collection, with an email.
  2. If a users email changes (via manual update on the users part), this automatically removes the email and updates Mailchimp with the new one.

This does however totally change the flow so it'll need some discussion. Thanks!

cc @karayu

All 6 comments

Currently the function only runs on user create, rather than an update. Will have to check whether this is possible via triggers.

Unfortunately this isn't possible at the moment, as the UserBuilder for functions only provides onCreate and onDelete handlers: https://firebase.google.com/docs/reference/functions/functions.auth.UserBuilder

Ok, but this leaves this plugin pretty much unusable since it won't update email on linking credential, and another big situation, is when the user decides to change his email.

In case we store user profiles in a collection (name, mail, uid), is it possible to imagine an option for the "update" trigger of this extension ?

Let me bring this one up with the team. Generally it would be a totally different extension if it triggered on collection change. Here's something which may work:

  1. Auth user create: Updates Mailchimp + creates a record in a collection, with an email.
  2. If a users email changes (via manual update on the users part), this automatically removes the email and updates Mailchimp with the new one.

This does however totally change the flow so it'll need some discussion. Thanks!

cc @karayu

Thanks so much for the feature request! It sounds like this would need to be a new extension.

Do you mind filing a feature request for this so we can track it?
https://firebase.google.com/support/troubleshooter/report/features/

I'm closing this issue for now since it's unfortunately not a change to the current extension.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yulioaj290 picture yulioaj290  路  5Comments

yahavt picture yahavt  路  3Comments

dfischer picture dfischer  路  3Comments

keatonwalker picture keatonwalker  路  6Comments

nicoqh picture nicoqh  路  3Comments