Class: Clerk::ApplicationController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Clerk::ApplicationController
- Defined in:
- app/controllers/clerk/application_controller.rb
Instance Method Summary collapse
Instance Method Details
#remote_cookie_accessor ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 |
# File 'app/controllers/clerk/application_controller.rb', line 3 def # TODO: Only drop cookie if signature verifies # TODO: Hide route entirely if client doesn't use remote cookies = (request.host.include?(".") ? ".#{request.host}" : nil) if params[:value].blank? .delete :clerk_session, domain: else [:clerk_session] = {value: params[:value], domain: , expires: 20.years} end redirect_to params[:redirect] end |