tinytokenauth-rails 0.90.2 → 0.90.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1df97298fb463163b04fe943be36229941255b2fec54c137dc707761ef96a088
4
- data.tar.gz: ce9cdb606cde4370ecec48552613ca05e648224f39178fa09db000ed878ea752
3
+ metadata.gz: b94967637a0f61484976ef18805ad3d1adb73719cb9f2fee6de1e4c0d4ef1544
4
+ data.tar.gz: ebbf60139c5289fc066c8833990ab942b68f920a04aa1fda85b4d57aa023fe1c
5
5
  SHA512:
6
- metadata.gz: 91e540e1316885b4326688a2173cf3c6639494ae4f6517fb779f38dfeac1daa319061e64eae63a6df64575fdfedddc8b9cb2e313ee0d026d40e243df1a698cb8
7
- data.tar.gz: 472cc976e0c91544ed2950f01f798f0e380ba6c9142e5675a6002c08dc9ce48f76befb2caba7e9a3ff2efd3d54abc50d27d692d643670e7aae4f61e1a912663a
6
+ metadata.gz: eec2a4463ff6293b08a9a77d2e090026537c8f01c2efae1a1c35d80be4b28e493cdf4f4d6984d7e233787865a80f0a9456c66d2d04f7ec65d4b5816bf14f71d2
7
+ data.tar.gz: a45a0e49a95c67112229ce8c661871457d8624d396aa52677be0fd78a8c65e8336024270c99e9d668e8b4e2384df2e7dd524f6515b8f082a56207a3540b8459f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tinytokenauth-rails (0.90.1)
4
+ tinytokenauth-rails (0.90.2)
5
5
  jwt (~> 2.7)
6
6
  rails (>= 6.0)
7
7
 
@@ -20,7 +20,7 @@ module Tinytokenauth
20
20
 
21
21
  begin
22
22
  @decoded = JsonWebToken.decode(Tinytokenauth.configuration.token_secret, token)
23
- @current_user = Tinytokenauth.configuration.user_class.constantize.send 'find', @decoded[:user_id]
23
+ @current_user = Tinytokenauth.configuration.user_class.constantize.send 'find', @decoded[:tinytokenauth_id]
24
24
  rescue ActiveRecord::RecordNotFound => e
25
25
  render json: { errors: e.message }, status: :unauthorized
26
26
  rescue JWT::DecodeError => e
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tinytokenauth
4
- VERSION = "0.90.2"
4
+ VERSION = "0.90.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tinytokenauth-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.90.2
4
+ version: 0.90.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kim Laplume