Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the public key #310

Merged
merged 6 commits into from
Jul 9, 2020
Merged

Remove the public key #310

merged 6 commits into from
Jul 9, 2020

Conversation

otherchen
Copy link
Collaborator

@otherchen otherchen commented Jun 3, 2020

Endpoints in this lib have been updated to accept client_id/secret instead of the public_key.

This PR also consolidates the parameters for the plaid.Client call into an object so that if we make changes to the parameter list at a later point, it will be much easier to manage.

@@ -90,6 +90,7 @@ var plaidRequest = function(context, requestSpec, clientRequestOptions, cb) {
responseType: requestSpec.binary ? 'arrayBuffer' : 'json'
}, clientRequestOptions);


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit

Copy link
Contributor

@davidzhanghp davidzhanghp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually this is very dangerous. if you just upgrade the node library as one of our clients, it won't warn you if you pass in extra params, right? so we would fail in really weird ways?

@otherchen
Copy link
Collaborator Author

@davidzhanghp Right now, the lib will throw an error if the third param is not environment https://github.com/plaid/plaid-node/pull/310/files#diff-3c004e391b76be3d739c6f456e096b07L28.

I can also add a check for if the number of parameters is longer than what we expect.

@otherchen
Copy link
Collaborator Author

@otherchen to change this to use an object parameter

@otherchen otherchen force-pushed the ac-remove-public-key branch from 6581968 to 69d3589 Compare July 8, 2020 18:34
@otherchen otherchen merged commit 02bcdee into master Jul 9, 2020
@otherchen otherchen deleted the ac-remove-public-key branch July 9, 2020 16:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants