-
Notifications
You must be signed in to change notification settings - Fork 85
Support webhook signature header #199
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
Conversation
src/coinbase/webhook.ts
Outdated
| `event_type: '${this.getEventType()}', event_filter: ${JSON.stringify(this.getEventFilters())}, ` + | ||
| `notification_uri: '${this.getNotificationURI()}', signature_header: '${this.getSignatureHeader()}' }` | ||
| ); |
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.
can we camel case these please
src/tests/webhook_test.ts
Outdated
| }); | ||
| }); | ||
|
|
||
| describe(".getSignatureHeader", () => { |
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.
| describe(".getSignatureHeader", () => { | |
| describe("#getSignatureHeader", () => { |
please use # for instance methods and . for static methods
| notificationUri: string, | ||
| eventType: WebhookEventType, | ||
| eventFilters: Array<WebhookEventFilter>, | ||
| signatureHeader = "", |
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.
The create args are getting large. Let's consider adding a createWebhookOptions type
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.
Example using createTransfer
coinbase-sdk-nodejs/src/coinbase/types.ts
Line 862 in 8790a49
| export type CreateTransferOptions = { |
test # . use option lint fix test fix test added one more test update conflict con con lint fix
63d95d9 to
ae56bd5
Compare
What changed? Why?
Qualified Impact
testing