csbarnes/angular-plaid-link

metadata is undefined in the onSuccess callback.

Closed this issue · 1 comments

Hi.

As below... this is my code. selectAccount is set to true but metadata is coming back as undefined here. Any ideas?

This is an a controller.

Thanks in advance.

    function plaidSetup() {
      plaidLink.create({
        onSuccess: function (public_token, metadata) {
          console.log(`token: ${public_token}`);
          console.log(`metadata: ${metadata}`); // <--undefined
          vm.public_token = public_token;
        },
        onExit: function () {
          console.log('user closed');
        },
        selectAccount: true
      });
    }

Ah, I can see that it has been sorted on NPM (from @mpk2's fork), but the bower version hasn't been sorted.