Hi,
I’m trying to use Twilio’s Rack Middleware to authenticate my webhooks that I’ve implemented in jets. Everything works fine locally, but when I deploy it to lambda I get an “Internal server error”. Is this a good way to go about authenticating twilio request or should I just implement some before hooks and manually verify the token.
here is my application.rb
Jets.application.configure do
config.project_name = "ss-commo-jets"
config.mode = "api"
config.prewarm.enable = true # default is true
config.middleware.use Rack::TwilioWebhookAuthentication, ENV['TWILIO_AUTH_TOKEN'], '/commo_messaging/incoming_message'
end