```ruby
require "sign_in_guards/is_team_member_guard"
require "sign_in_guards/not_deleted_guard"

Clearance.configure do |config|
  config.allow_sign_up = false
  config.mailer_sender = ENV["MAILGUN_FROM_EMAIL"]
  config.sign_in_guards = [SignInGuards::IsTeamMemberGuard, SignInGuards::NotDeletedGuard]
end

# Clearance::PasswordsController.layout 'auth'
# Clearance::SessionsController.layout 'auth'
```

Allow cookies to work across all domains
user
```ruby
require "sign_in_guards/is_team_member_guard"
require "sign_in_guards/not_deleted_guard"

Clearance.configure do |config|
  config.allow_sign_up = false
  config.mailer_sender = ENV["MAILGUN_FROM_EMAIL"]
  config.sign_in_guards = [SignInGuards::IsTeamMemberGuard, SignInGuards::NotDeletedGuard]
  # Allow cookies to work across all subdomains '.openhq.io'
  config.cookie_domain = "." + URI.parse(Rails.application.secrets.application_url).host
end
```
assistant