strongmind-auth 1.1.64 → 1.1.65
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/jwt_utilities.rb +1 -1
- data/lib/strongmind/auth/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99672f759fb0e10368ec62cf714ebd413a5bc4e393b6402990aa48d5b28395f8
|
4
|
+
data.tar.gz: 8d609c40544f337acd86b31e05bc02e43b6fa96ce3b714b245cf4b92821f937c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1077f38ecda4ae206333c2a9fcdb4f9cfd188651309b66c530bf32981a660abaeef7179d1b33a446b0eee46122abbfd251f4028ad87769a8a9364e3d53ac9265
|
7
|
+
data.tar.gz: d9d6498fdae747f5e37f7f75344087d4a7ca1cd3442eb0da077469025f2cb7397573a70bf692b992d8e0e28b94f75ac6f7805e8ee4abfe5011f8477cc8278821
|
@@ -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]
|