verify(signed_message) public

No documentation

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

Hide source
# File activesupport/lib/active_support/message_verifier.rb, line 35
    def verify(signed_message)
      raise InvalidSignature if signed_message.blank?

      data, digest = signed_message.split("--")
      if data.present? && digest.present? && secure_compare(digest, generate_digest(data))
        begin
          @serializer.load(::Base64.strict_decode64(data))
        rescue ArgumentError => argument_error
          raise InvalidSignature if argument_error.message =~ %{invalid base64}
          raise
        end
      else
        raise InvalidSignature
      end
    end
Register or log in to add new notes.