```ruby
Clearance.configure do |config|
  config.allow_sign_up = (ENV['DISABLE_SIGNUP'].to_s == 'true') ? false : true
  config.mailer_sender = "RubyGems.org <no-reply@mailer.rubygems.org>"
  config.secure_cookie = true unless Rails.env.test? || Rails.env.development?
  config.password_strategy = Clearance::PasswordStrategies::BCryptMigrationFromSHA1
  config.sign_in_guards = [ConfirmedUserGuard]
  config.rotate_csrf_on_sign_in = true
end
```

Expire remember_token cookie after 2 weeks
user
```ruby
Clearance.configure do |config|
  config.allow_sign_up = (ENV['DISABLE_SIGNUP'].to_s == 'true') ? false : true
  config.mailer_sender = "RubyGems.org <no-reply@mailer.rubygems.org>"
  config.secure_cookie = true unless Rails.env.test? || Rails.env.development?
  config.password_strategy = Clearance::PasswordStrategies::BCryptMigrationFromSHA1
  config.sign_in_guards = [ConfirmedUserGuard]
  config.rotate_csrf_on_sign_in = true
  config.cookie_expiration = ->(_cookies) { 2.weeks.from_now.utc }
end
```
assistant