ibrain-auth 0.3.18 → 0.3.20

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: '049d14fa1a01ad65da1f87ae5cc53495874a42227d05861e908e9690f82a4fbc'
4
- data.tar.gz: 7df78b2220c49b8d4d974be4f23b9fb7c3f0848c7fc2e4c80ed8256af76611cb
3
+ metadata.gz: 75d947397dac2270ffc50a5b0d2b3bfaa9aa5c2b474d117e23f8d697bb3ea905
4
+ data.tar.gz: c254adca3fa5cefb933fdc3bfd6ad498c9fbdf78137b4dd55cf508a9476e40b3
5
5
  SHA512:
6
- metadata.gz: df3bb4ea3b6cdf9efe177ab5619f282a00a9c9d5eee709e65f9e54b519c34898cc51c719258c1fcac6f9023a90a8c6273e71898f110185f8f8d90d985e0bba33
7
- data.tar.gz: d259e5aa8cb48db4e51e73916f9cfdafba1eace1fdd0c8616ae700d8c19171c93a96430ba4697bdb45f3d61a13d0fbea8c63009c6484773280facd8a0178bf3d
6
+ metadata.gz: ab74c7e5adfd288049f970d8a13bfb87d9c7ff9597f5a4c4420b050925d577cd96dc910ad614e83d1cad7f5b8038f4e84397f00072c87ffb0446bdb84648be97
7
+ data.tar.gz: e9d2351003d081b8c3d14794fe62fbf0813a1b2c0d5d973a4f4ef143e979749cb1dfe213eaa8a2abad7f02dc79893e766fae4d226e2c5726e95d25a4f0388207
@@ -24,7 +24,7 @@ module Ibrain::Mutations
24
24
  raise ActionController::InvalidAuthenticityToken, I18n.t('ibrain.errors.account.is_deactivated')
25
25
  end
26
26
 
27
- warden.set_user(current_user)
27
+ # warden.set_user(current_user)
28
28
  current_user.jwt_token, jti = auth_headers(request, auth_resource)
29
29
  current_user.jti = jti
30
30
  current_user.save!
@@ -20,7 +20,7 @@ module Ibrain::Mutations
20
20
  raise ActionController::InvalidAuthenticityToken, I18n.t('ibrain.errors.account.is_deactivated')
21
21
  end
22
22
 
23
- warden.set_user(current_user)
23
+ # warden.set_user(current_user)
24
24
  current_user.jwt_token, jti = auth_headers(request, auth_resource)
25
25
  current_user.jti = jti
26
26
  current_user.save!
@@ -308,4 +308,7 @@ Devise.setup do |config|
308
308
  # When set to false, does not sign a user in automatically after their password is
309
309
  # changed. Defaults to true, so a user is signed in automatically after changing a password.
310
310
  # config.sign_in_after_change_password = true
311
+
312
+ config.remember_for = 2.weeks
313
+ config.timeout_in = 2.weeks
311
314
  end
@@ -4,7 +4,7 @@ module Ibrain
4
4
  # frozen_string_literal: true
5
5
 
6
6
  module Auth
7
- VERSION = '0.3.18'
7
+ VERSION = '0.3.20'
8
8
 
9
9
  def self.ibrain_auth_version
10
10
  VERSION
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ibrain-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.18
4
+ version: 0.3.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tai Nguyen Van
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-02-15 00:00:00.000000000 Z
11
+ date: 2023-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: devise