strongmind-auth 1.1.63 → 1.1.65

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: 3e76213cdfcc9edec5c34b3d71920f847444f33bbb4b5999bc9699e49d8350ab
4
- data.tar.gz: 9b10b41b6ca05f2ef7caa71113bc3702578dc5e2cd7adb377f4f27ac196182ee
3
+ metadata.gz: 99672f759fb0e10368ec62cf714ebd413a5bc4e393b6402990aa48d5b28395f8
4
+ data.tar.gz: 8d609c40544f337acd86b31e05bc02e43b6fa96ce3b714b245cf4b92821f937c
5
5
  SHA512:
6
- metadata.gz: 9e99ec4b5c8ee816862b78beb662ca40fe29e795b23e6d59baa83602d23d9a6b0894b07ee4c247c2835fad760ab3d32e8783d513edda669c5020fd74f15a2645
7
- data.tar.gz: c737bd54e6201dfca2bfaa5f4060dd2db3d5464c8393b307fae325c77595ab9ce6561a378a6993c866352ef3de4175cf34b9aa29ca4302009789dc50bf711413
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]
@@ -1,6 +1,6 @@
1
1
  class LoginsController < ApplicationController
2
2
  skip_before_action :authenticate_user!
3
- skip_before_action :fetch_common_nav
3
+ skip_before_action :fetch_common_nav, raise: false
4
4
 
5
5
  def index
6
6
 
@@ -3,7 +3,7 @@
3
3
  module Users
4
4
 
5
5
  class OmniauthCallbacksController < Devise::OmniauthCallbacksController
6
- skip_before_action :fetch_common_nav
6
+ skip_before_action :fetch_common_nav, raise: false
7
7
 
8
8
  def strongmind
9
9
  auth = request.env['omniauth.auth']
@@ -5,7 +5,7 @@ module Users
5
5
  class SessionsController < Devise::SessionsController
6
6
  include JwtUtilities
7
7
 
8
- skip_before_action :fetch_common_nav
8
+ skip_before_action :fetch_common_nav, raise: false
9
9
  skip_before_action :verify_authenticity_token, only: :endsession
10
10
 
11
11
  def login
@@ -1,5 +1,5 @@
1
1
  module Strongmind
2
2
  module Auth
3
- VERSION = "1.1.63"
3
+ VERSION = "1.1.65"
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.63
4
+ version: 1.1.65
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-01 00:00:00.000000000 Z
11
+ date: 2024-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails