Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7fb91d commit 7415da3Copy full SHA for 7415da3
lib/clerk/sdk.rb
@@ -5,14 +5,14 @@
5
6
module Clerk
7
class SDK < ClerkHttpClient::SDK
8
- # TODO: Move to constants?
9
DEFAULT_HEADERS = {
10
"User-Agent": "Clerk/#{Clerk::VERSION}; Faraday/#{Faraday::VERSION}; Ruby/#{RUBY_VERSION}",
11
- "X-Clerk-SDK": "ruby/#{Clerk::VERSION}" # TODO: Add framework identifier
+ "X-Clerk-SDK": "ruby/#{Clerk::VERSION}",
+ "Clerk-API-Version": "2025-04-10",
12
}
13
14
# How often (in seconds) should JWKs be refreshed
15
- JWKS_CACHE_LIFETIME = 3600 # 1 hour / TODO: Move to constants?
+ JWKS_CACHE_LIFETIME = 3600 # 1 hour
16
17
@@jwks_cache = JWKSCache.new(JWKS_CACHE_LIFETIME)
18
0 commit comments