instance method
encode_csrf_token
Ruby on Rails 7.2.3
Since v7.2.3 PrivateSignature
encode_csrf_token(csrf_token)
No documentation comment.
Parameters
-
csrf_tokenreq
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 661
def encode_csrf_token(csrf_token)
Base64.urlsafe_encode64(csrf_token, padding: false)
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 661
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection