model_driven_api 2.3.18 → 2.3.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/json_web_token.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0185ee834ab4556b49df71082c7cff31f834e8c5a434f0add47763f8b4e3a0b5'
4
- data.tar.gz: d0731f1d3485921ce34250f91e50ece42c4d1bc0a35378b881b24d6c711b9a31
3
+ metadata.gz: d38e64a791f7147bdc145e1767814ac885fcf75ff5031cf30743b96d8717fb32
4
+ data.tar.gz: 213dc7345b1061bca3a93826ac9c52b63e97bee20891aca0569f0e14ce11f565
5
5
  SHA512:
6
- metadata.gz: 3558a4190736978ac74b84c43887907cde12785439bef08e18edd85b2c334e5d30e79b8b1c649552fc07ea20026d0da9c5167c796fbfcfd2b814fb1a7f25682a
7
- data.tar.gz: 8bf646ed0e69761256895e60dffefa2c320d2bf6535ba0659c49e7f8d14107fafaa9ae53caeba31fb247364174cbfa52341c891d407b6c8cd62d2e88c6bebd42
6
+ metadata.gz: 5d435ae0c87967fcdfb1517cf1f353588635efb1df3a657b555f9d622bd7aff36c684c8c8cfaf764926edaf93109ddabc813867dbb62000a7b92d220c1d1a93e
7
+ data.tar.gz: 609644b3be46a961b594e95fc601bc48393095a6bf090679094d5227427856ced680c83d0fb44d489589d3e2433d145473bc080a90a8574040c77cfbb59ab47f
@@ -10,7 +10,7 @@ class JsonWebToken
10
10
 
11
11
  def decode(token)
12
12
  # Check if the passed token is present and valid into the UsedToken
13
- raise "Token is invalidated by new login" unless UsedToken.exists?(token: token, is_valid: true)
13
+ raise "Token is invalidated by new login" unless UsedToken.exists?(token: token, is_valid: true) if ENV["ALLOW_MULTISESSIONS"] == "false"
14
14
  body = ::JWT.decode(token, ::Rails.application.credentials.dig(:secret_key_base).presence||ENV["SECRET_KEY_BASE"])[0]
15
15
  ::HashWithIndifferentAccess.new body
16
16
  rescue
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: model_driven_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.18
4
+ version: 2.3.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni