credible 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36d4cd634fa34562978e37d5a84169812678c28109d09c58238cb8c5bc2338d5
4
- data.tar.gz: edc9471b968557985508ed60f49ae905390b3167d120497b3ea272faed0b423a
3
+ metadata.gz: e04943e3c6a99a996da418ebbd9755ce9ae95a2f84787d7cd4252e04623aa85f
4
+ data.tar.gz: e4bdff3bda7cc60010075a4d4f508e0aea52b9952701b7e074efa85249891009
5
5
  SHA512:
6
- metadata.gz: 263ef8576aae2c0b1aaad9d1e5710c2eca33e5812accbe1a5d19827b37782bb3a8109ba5a91f77a41fc16a41834d5c4d040358be44017836ed9a22c54ffe6c0c
7
- data.tar.gz: f23153d8e705f201acba1ff85c31016f2e1a1e9076016a66083ef8fb7da21a740c0bd2d5031ec4cf4e881ed0f352e3ac662a4592f599f9f70b7960ba7ab56ae9
6
+ metadata.gz: 3adbff0a4748239eead7ca91f8e43bf3d712ef62b4adc03688504849bd95f7a9d76ccf2ef89abc015007e8141a6ef3d40607e808f1a07f66871b8fdb7d7883b5
7
+ data.tar.gz: 188c025df651ef0e0996bac64a393b406244ee5bae3c2115083d8a1cb16345b2fa3a669b5ea7295c3232f5dee25f272c43ed4a4549ecfba5d904ac5651fd63fb
@@ -33,7 +33,8 @@ Warden::Strategies.add(:jwt) do
33
33
  fail!('Could not authenticate')
34
34
  end
35
35
 
36
- session = ::Session.find(token[0]['data']['session_id'])
36
+ user = ::User.find(token[0]['data']['user_id'])
37
+ session = ::Session.new(user: user)
37
38
  success!(session)
38
39
  rescue # ActiveRecord::RecordNotFound
39
40
  fail!('Could not authenticate')
@@ -1,3 +1,3 @@
1
1
  module Credible
2
- VERSION = '0.12.0'
2
+ VERSION = '0.13.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: credible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom Bruce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-01 00:00:00.000000000 Z
11
+ date: 2020-05-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails