instance method decode_csrf_token

Ruby on Rails 7.2.3

Since v7.2.3 Private

Available in: v7.2.3 v8.0.4 v8.1.2

Signature

decode_csrf_token(encoded_csrf_token)

No documentation comment.

Parameters

encoded_csrf_token req
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 665
      def decode_csrf_token(encoded_csrf_token)
        Base64.urlsafe_decode64(encoded_csrf_token)
      end

Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 665 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionController::RequestForgeryProtection

Type at least 2 characters to search.

↑↓ navigate · open · esc close