instance method
real_csrf_token
Ruby on Rails 6.1.7.10
Since v5.2.8.1 PrivateSignature
real_csrf_token(session)
No documentation comment.
Parameters
-
sessionreq
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 399
def real_csrf_token(session) # :doc:
session[:_csrf_token] ||= generate_csrf_token
decode_csrf_token(session[:_csrf_token])
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 399
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection