We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a546963 commit db0b711Copy full SHA for db0b711
1 file changed
lib/imagekitio/resources/webhooks.rb
@@ -23,7 +23,8 @@ def unwrap(payload, headers:, key: @client.webhook_secret)
23
raise ArgumentError.new("Cannot verify a webhook without a key on either the client's webhook_secret or passed in as an argument")
24
end
25
26
- ::StandardWebhooks::Webhook.new(key).verify(payload, headers)
+ encoded_key = Base64.strict_encode64(key)
27
+ ::StandardWebhooks::Webhook.new(encoded_key).verify(payload, headers)
28
29
parsed = JSON.parse(payload, symbolize_names: true)
30
Imagekitio::Internal::Type::Converter.coerce(Imagekitio::Models::UnwrapWebhookEvent, parsed)
0 commit comments