strongmind-auth 1.1.64 → 1.1.66

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: c6739778ac28a2ed608275b94977c08d75bd6128e96334743f7088b138090b67
4
- data.tar.gz: 62b1ea641bfd97ddf355c7ec04b5997f10a1216a6333fac823945535ad3bdaf1
3
+ metadata.gz: c45bb71907ca288706595e13ca0cd0eca58f0a8570a5be8dd0d892a1a13f2c04
4
+ data.tar.gz: ac2a2589b9c1bdd93c1722356dfe8c5b0111392fe6fffb89a7655b33ec77824e
5
5
  SHA512:
6
- metadata.gz: def922cf00e5d09d9f359ea6e3bfb430e87313b387613b443065cb3f84a925939be916c0400965f6ce4ef31ad9076285eda9b56c1c7c8593fc099234ced1f2a0
7
- data.tar.gz: 7feb01fb200c51d86d884adf2d2270856d3fe74c4ce31b4f6585671b2d7dc17270fa7ad85257fc3196bb99d8e0fc58e2310ca5c818896d1b4b36d956f4cac5eb
6
+ metadata.gz: ec60735eb0cb370ad570e3c81c3e0473e0f60a47bd4d39719ee7d3bbea114340905ce376e1cd60d4321c878ea3172e14a8f5bad249e7a868987eee7e250933af
7
+ data.tar.gz: 9547b19219e6b22f49ba4cf64b7e956d3f8ea42afa69c82d91b0dd64013414fd64f967a5a3fe44aa6251d39051314c5ef9bf1ae586dcbbced876b916bac7bdd8
@@ -78,7 +78,7 @@ module JwtUtilities
78
78
 
79
79
  unless current_user.nil?
80
80
  tokens[:expires_in] = 1.hour.to_i if tokens[:expires_in].nil?
81
- Rails.cache.write(current_user&.uid, tokens)
81
+ Rails.cache.write(current_user&.uid, tokens, expires_in: tokens[:expires_in].seconds - 10.minutes.in_seconds)
82
82
  end
83
83
  end
84
84
  session_data[:refresh_token] = tokens[:refresh_token]
@@ -13,7 +13,8 @@ class UserBase < ApplicationRecord
13
13
  id_token: auth.credentials.id_token,
14
14
  access_token: auth.credentials.token,
15
15
  refresh_token: auth.credentials.refresh_token
16
- }
16
+ },
17
+ expires_in: auth.credentials.expires_in.seconds - 10.minutes
17
18
  )
18
19
  end
19
20
 
@@ -1,5 +1,5 @@
1
1
  module Strongmind
2
2
  module Auth
3
- VERSION = "1.1.64"
3
+ VERSION = "1.1.66"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongmind-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.64
4
+ version: 1.1.66
5
5
  platform: ruby
6
6
  authors:
7
7
  - Team Belding
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-02 00:00:00.000000000 Z
11
+ date: 2024-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails