method
real_csrf_token
v4.2.1 -
Show latest stable
- Class:
ActionController::RequestForgeryProtection
real_csrf_token(session)protected
No documentation available.
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 315
def real_csrf_token(session)
session[:_csrf_token] ||= SecureRandom.base64(AUTHENTICITY_TOKEN_LENGTH)
Base64.strict_decode64(session[:_csrf_token])
end