stytch 7.0.2 → 7.0.3
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/stytch/sessions.rb +7 -9
- data/lib/stytch/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7db7ce0ca6bc7abc37055eb392add1196bf5b6a0d226bbd465c0a7d7fe77ce11
|
|
4
|
+
data.tar.gz: f7a8dc3fd353b3727e0ae8ac9567c6e3655f16a10c30589a2305560c15090a25
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c382982dece8ce8f68b22a06dd2522b0f86618f304642189b85f08b89c3a8870126abe1a3995377c61412b52609a6580e844a4345ef70bfa7265f763d501c168
|
|
7
|
+
data.tar.gz: 04755c76aef2e3a0d20dff671cbe34504ec7e0bc4a887bf77c7b975d3616700fea61594410389580cb0bc8056d68cbeef813e9234afafdd518f089e98dfec9c6
|
data/lib/stytch/sessions.rb
CHANGED
|
@@ -216,15 +216,13 @@ module Stytch
|
|
|
216
216
|
end
|
|
217
217
|
|
|
218
218
|
session = authenticate_jwt_local(session_jwt, max_token_age_seconds: max_token_age_seconds)
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
)
|
|
227
|
-
end
|
|
219
|
+
return session unless session.nil?
|
|
220
|
+
|
|
221
|
+
authenticate(
|
|
222
|
+
session_jwt: session_jwt,
|
|
223
|
+
session_duration_minutes: session_duration_minutes,
|
|
224
|
+
session_custom_claims: session_custom_claims
|
|
225
|
+
)
|
|
228
226
|
rescue StandardError
|
|
229
227
|
# JWT could not be verified locally. Check with the Stytch API.
|
|
230
228
|
authenticate(
|
data/lib/stytch/version.rb
CHANGED