-
Notifications
You must be signed in to change notification settings - Fork 173
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
Conversation
lib/plaidRequest.js
Outdated
@@ -90,6 +90,7 @@ var plaidRequest = function(context, requestSpec, clientRequestOptions, cb) { | |||
responseType: requestSpec.binary ? 'arrayBuffer' : 'json' | |||
}, clientRequestOptions); | |||
|
|||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
There was a problem hiding this 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?
@davidzhanghp Right now, the lib will throw an error if the third param is not I can also add a check for if the number of parameters is longer than what we expect. |
@otherchen to change this to use an object parameter |
6581968
to
69d3589
Compare
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.