You should implement the method `log_out_account` inside the configuration provider and use it here instead of direct `devise` API usage. (look at `lib/iam/authorization_provider/devise.rb`)