strongmind-auth 1.1.67 → 1.1.70

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: 319ca5e561b4d889987f1ee237c122931973142e21c3d9fd914f96f72579dd2f
4
- data.tar.gz: a5c83542ca17517d3b3441873d8506340cb1be3c8e678c0b0acd13733cb321c1
3
+ metadata.gz: 62f26f042ed3981f261550a4d15685cb83d63c6f6140fe7ecfa232f4cb2594e1
4
+ data.tar.gz: f81421faeedb5e7fa3bf2f32336c18641cc40d65795f5d480f978d3bc38eacbc
5
5
  SHA512:
6
- metadata.gz: 26e4ca94443076c7c8eacf8b315b532a67dad8fd035d5a54ca57d04c02c3595ccf8a500b6b5a562481ea2241a4d7ddc67d092929226aaa0e651ebd9507dfc2fe
7
- data.tar.gz: 4bfac1ab1bf62a526270833e1fcae7330cab2f66bf80f64862f3e70a22756c0219580011e089e5f949d7c704a1a60536984c5c2d0b4488baa6f30b87d6a126c9
6
+ metadata.gz: 17c6adf570d424c3a26ea007fce2373207c0992ce738107ce9b38ad0e094ff7e036d84e5484f24e5b8dfb415d33a9d7b1b6e8c5602b263919c8339dff691694e
7
+ data.tar.gz: '0310901e9e6618ca6ccb356d637a68231da2e321f92dac35d88994fab6123ed2299cdec7c2be7bedfd0145c48294aa11e032cb432a2d248f950a232c894208fc'
@@ -1,5 +1,5 @@
1
1
  module Strongmind
2
2
  module Auth
3
- VERSION = "1.1.67"
3
+ VERSION = "1.1.70"
4
4
  end
5
5
  end
@@ -76,7 +76,7 @@ module Strongmind
76
76
  def refresh_session
77
77
  session = Rails.cache.fetch(user.uid)
78
78
  auth_client.refresh_session(session:)
79
- Rails.cache.write(user.uid, session)
79
+ Rails.cache.write(user.uid, session, expires_in: session[:expires_in].to_i.seconds - 10.minutes)
80
80
  rescue PlatformSdk::Identity::ClientError => e
81
81
  handle_refresh_error(e)
82
82
  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.67
4
+ version: 1.1.70
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-05 00:00:00.000000000 Z
11
+ date: 2024-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails