clerk-sdk-ruby 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/clerk/authenticate_request.rb +4 -4
- data/lib/clerk/sdkconfiguration.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 20840d5b23f60433fccb5578608635bfecaf400fff32c2d6c07eb54633f7f571
|
|
4
|
+
data.tar.gz: 32a7e49f1ff8010db3c3dabea0cf838b387f05e356253a5cab1f54a9365fe210
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5808249ff42b87f0fdb9638f5c17a4ce858a20127cd8bc243f21f8ec0a7949cbe5151afb4a73c0a08409a0f8738d35af4d891603508093bf98bde09468455438
|
|
7
|
+
data.tar.gz: 5f8fbed0cc11877e74e912127fb4cfeca83f714c93d7915bf190d7374a6728e76c699b7c7bf26fd511f4736100a395b1754ef3ab5c09f83bede705a6d202fb40
|
|
@@ -154,7 +154,7 @@ module Clerk
|
|
|
154
154
|
|
|
155
155
|
return signed_out(reason: AuthErrorReason::SESSION_TOKEN_MISSING, headers: headers) unless session_token
|
|
156
156
|
|
|
157
|
-
verify_token_with_retry(env, session_token)
|
|
157
|
+
verify_token_with_retry(env, session_token, headers:)
|
|
158
158
|
end
|
|
159
159
|
|
|
160
160
|
def handle_handshake_maybe_status(env, **opts)
|
|
@@ -230,16 +230,16 @@ module Clerk
|
|
|
230
230
|
|
|
231
231
|
# Verify session token and provide a 1-day leeway for development if initial verification
|
|
232
232
|
# fails for development instance due to invalid exp or iat
|
|
233
|
-
def verify_token_with_retry(env, token)
|
|
233
|
+
def verify_token_with_retry(env, token, headers: {})
|
|
234
234
|
claims = verify_token(token)
|
|
235
|
-
signed_in(env, claims, token) if claims
|
|
235
|
+
signed_in(env, claims, token, **headers) if claims
|
|
236
236
|
rescue JWT::ExpiredSignature, JWT::InvalidIatError => e
|
|
237
237
|
if auth_context.development_instance?
|
|
238
238
|
# TODO: log possible Clock skew detected
|
|
239
239
|
|
|
240
240
|
# Retry with a generous clock skew allowance (1 day)
|
|
241
241
|
claims = verify_token(token, timeout: 86_400)
|
|
242
|
-
return signed_in(env, claims, token) if claims
|
|
242
|
+
return signed_in(env, claims, token, **headers) if claims
|
|
243
243
|
end
|
|
244
244
|
|
|
245
245
|
# Raise error if handshake resolution fails in production
|
|
@@ -77,9 +77,9 @@ module Clerk
|
|
|
77
77
|
end
|
|
78
78
|
@language = 'ruby'
|
|
79
79
|
@openapi_doc_version = '2025-11-10'
|
|
80
|
-
@sdk_version = '5.0.
|
|
80
|
+
@sdk_version = '5.0.1'
|
|
81
81
|
@gen_version = '2.801.2'
|
|
82
|
-
@user_agent = 'speakeasy-sdk/ruby 5.0.
|
|
82
|
+
@user_agent = 'speakeasy-sdk/ruby 5.0.1 2.801.2 2025-11-10 clerk-sdk-ruby'
|
|
83
83
|
end
|
|
84
84
|
|
|
85
85
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: clerk-sdk-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.0.
|
|
4
|
+
version: 5.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Speakeasy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-02-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base64
|