method

real_csrf_token

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: ActionController::RequestForgeryProtection
real_csrf_token(_session = nil) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 552
      def real_csrf_token(_session = nil) # :doc:
        csrf_token = request.env.fetch(CSRF_TOKEN) do
          request.env[CSRF_TOKEN] = csrf_token_storage_strategy.fetch(request) || generate_csrf_token
        end

        decode_csrf_token(csrf_token)
      end
Register or log in to add new notes.