app/controllers/concerns/authentication.rb
# Logout the current user
# :api: public
Logout the current user
:api: public
Logout the current user : api : public
def logout!(scope: nil)
    if scope
      warden.logout(scope)
      warden.clear_strategies_cache!(scope: scope)
    else
      warden.logout
      warden.clear_strategies_cache!
    end
  end
def logout! ( scope : nil ) if scope warden . logout ( scope ) warden . clear_strategies_cache! ( scope : scope ) else warden . logout warden . clear_strategies_cache! end end
Logout the current user
:api: public
Logout the current user : api : public
scope