Upgrade to clerk-sdk-ruby
v4
In January 2025, version 4.0 of the Clerk Ruby SDK was released. This guide covers the breaking changes that were introduced.
Clerk.configure
updates
Previously, Clerk.configure
accepted api_key
as a parameter. Now, it accepts secret_key
instead.
middleware_cache_store
updates
Previously, if Rails was detected, the middleware_cache_store
was set to Rails.cache
. Otherwise, it was set to nil
.
Now, if Rails is not detected, the middleware_cache_store
attempts to use ActiveSupport::Cache::MemoryStore
before defaulting to nil
.
Available methods updates
With the introduction of our generated Ruby HTTP Client, the Clerk::SDK
class methods have all been overhauled to align with the Clerk OpenAPI specification.
Refer to the Ruby HTTP Client documentation for more information on what methods are available via the Clerk::SDK
class or the clerk.sdk
helper method.
Feedback
Last updated on