clerk-sdk-ruby 3.0.0 → 3.1.0.rc.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c386b9f44d3be850ca0ba0f3bdf5ed2322398fcbd3be2caab4861b5a771f9776
4
- data.tar.gz: b82ba95db218bab18647077601ba8ffb44b1d194e6c8c6bda27140fa7d7b979c
3
+ metadata.gz: f957cb4de679864a941b692d295cbdfce4578d259f6f707471f80dfe0e2d9508
4
+ data.tar.gz: 78d03a64929031c46ec6c5b42034f3a210a54887e8cb54c29807329c97194382
5
5
  SHA512:
6
- metadata.gz: 9ecddaacd364b4d63f993da578888bf9ca72c2280c608e36487953f31ee47febddf0abe5a4af850f15cdf51e87c71e6d9280b43f26aa1f44fdfbc7c24a930626
7
- data.tar.gz: 7a28d1da8d6a2d212da1ba5b1730ab063baae5a5eeb2c43f5e36c4e828a8cc4d2f1d67f78e470c37bdbc29a0a069b1a0f969ba3b778f388f4f0638699a4812a6
6
+ metadata.gz: f743b4691ba49981fa2da046faab7f853e78a1a208d851f8aff41d85c5c97a823c05f611555177da06616555ca2e6eacaebb36229c65132a3ed4ad3525b07204
7
+ data.tar.gz: 7bc8d9dc46f89727a70aa731b619133833546660da82a609800b734bd4858ba753eebbdd51e13ac3ad472093c87eedd5e8edfc1bed6420bc1133977467ca3720
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- clerk-sdk-ruby (2.11.1)
4
+ clerk-sdk-ruby (3.1.0.rc.1)
5
5
  concurrent-ruby (~> 1.1)
6
6
  faraday (>= 1.4.1, < 3.0)
7
7
  jwt (~> 2.5)
@@ -166,14 +166,21 @@ module Clerk
166
166
  # COOKIE AUTHENTICATION #
167
167
  # #
168
168
  ##########################################################################
169
+
169
170
  if development_or_staging? && (req.referrer.nil? || cross_origin_request?(req))
170
171
  return unknown(interstitial: true)
171
172
  end
172
173
 
173
- if production? && client_uat.nil?
174
- return signed_out(env)
174
+ # Show interstitial when there is no client_uat and cookie token
175
+ if client_uat.to_s.empty? && cookie_token.to_s.empty?
176
+ return unknown(interstitial: true)
175
177
  end
176
178
 
179
+ # Show interstitial when there is client_uat is incompatible with cookie token
180
+ has_cookie_token_without_client = (client_uat == "0" || client_uat.to_s.empty?) && cookie_token
181
+ has_client_without_cookie_token = (client_uat.to_s != "0" || client_uat.to_s != "") && cookie_token.to_s.empty?
182
+ return unknown(interstitial: true) if has_cookie_token_without_client || has_client_without_cookie_token
183
+
177
184
  if client_uat == "0"
178
185
  return signed_out(env)
179
186
  end
data/lib/clerk/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Clerk
4
- VERSION = "3.0.0"
4
+ VERSION = "3.1.0.rc.1"
5
5
  end
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: 3.0.0
4
+ version: 3.1.0.rc.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Clerk
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-09 00:00:00.000000000 Z
11
+ date: 2024-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -148,11 +148,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
148
148
  version: 2.4.0
149
149
  required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - ">="
151
+ - - ">"
152
152
  - !ruby/object:Gem::Version
153
- version: '0'
153
+ version: 1.3.1
154
154
  requirements: []
155
- rubygems_version: 3.3.7
155
+ rubygems_version: 3.2.3
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: Clerk SDK for Ruby.