# [2023-04-04] Nylas Ruby SDK v5.17.0

Source: https://developer.nylas.com/docs/new/v2-changelogs/2023-04-04-ruby-sdk-v5-17-0/

The Nylas Ruby SDK v5.17.0 has been released!

- GitHub: [Nylas Ruby SDK](https://github.com/nylas/nylas-ruby/releases/tag/v5.17.0)
- Distribution: [RubyGems gem description](https://rubygems.org/gems/nylas/versions/5.17.0)

This latest release of the Nylas Ruby SDK brings some helpful additions for webhooks, Events, and native authentication.

## Added

- Added support for verifying webhook signatures ([#413](https://github.com/nylas/nylas-ruby/pull/413))
- Add `event.updated_at` ([#410](https://github.com/nylas/nylas-ruby/pull/410))
- Allow native authentication to return the full response like the `exchange_code_for_token` ([#411](https://github.com/nylas/nylas-ruby/pull/411))

### Verifying webhook signatures with the Nylas Ruby SDK

```ruby
require 'sinatra'
require 'nylas'
require 'json'

set :port, 9000
NYLAS_CLIENT_SECRET = ENV['NYLAS_CLIENT_SECRET']

post '/' do
  content_type :json
  x_nylas_signature = request.env['HTTP_X_NYLAS_SIGNATURE']
  raw_body = request.body.read

  unless Nylas::Webhook::verify_webhook_signature(NYLAS_CLIENT_SECRET, x_nylas_signature, raw_body)
    status 403
    return { error: 'Invalid signature' }.to_json
  end

  body = JSON.parse(raw_body)
  puts "Webhook event received: #{JSON.pretty_generate(body)}"

  status 200
  { success: true }.to_json
end

run Sinatra::Application.run!
```

## New Contributors 🎉

This release wouldn’t have been possible without the hard work of our contributors!

- [@tvongaza](https://github.com/tvongaza) made their first contribution in [#411](https://github.com/nylas/nylas-ruby/pull/411) and followed it up with [#412](https://github.com/nylas/nylas-ruby/pull/412)! Thanks for your contributions!