Typeform/js-api-client

Feat: express middleware for verifying signature

picsoung opened this issue · 3 comments

Inspired by Twilio middleware https://www.twilio.com/docs/usage/tutorials/how-to-secure-your-express-app-by-validating-incoming-twilio-requests

offer both a middleware and a verifySignature function

mathio commented

@picsoung would you mind testing the version from PR #101 in an actual express project?

mathio commented

After talking with the team, we decided to move this into a separate lib. This functionality is not related to API client andit also introduces express as a dependency that is not necessary for the client.

I am closing this issue, but I will keep the draft PR #101 around and we can extract the code into a separate lib later.