You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Rails, an auto-expiry of 1 month is set by default. You can alter that deal in an initializer with:
# config/initializers/global_id.rb
Rails.application.config.global_id.expires_in = 3.months
Closes#105
This sets `GlobalID.app` and `SecureGlobalID.expires_in` to the default
values and then allows overwriting them via `config.global_id.app` and
`config.global_id.expires_in` in an `config/initializers/*.rb`
file.
From documentation ...
Unfortunately in my case it loads after railtie initializer (https://github.com/rails/globalid/blob/master/lib/global_id/railtie.rb#L16)
As result, it does not work, because SignedGlobalID.expires_in is set with default 1.month
My application details:
As a workaround, I put
config.global_id.expires_in = 3.months
to config/application.rbShould be fixed or the doc should be updated
The text was updated successfully, but these errors were encountered: